class ActiveModel::Serializer::Reflection

def include_data?(include_slice)

def include_data?(include_slice)
  if @_include_data == :if_sideloaded
    include_slice.key?(name)
  else
    @_include_data
  end
end