class ActiveModel::Serializer::Association

def embed=(embed)

def embed=(embed)
  @embed_ids     = embed == :id || embed == :ids
  @embed_objects = embed == :object || embed == :objects
end