mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 15:23:06 +00:00
embed_in_root is now side_load
This commit is contained in:
@@ -147,7 +147,7 @@ end
|
||||
included_associations = filter(associations.keys)
|
||||
associations.each_with_object({}) do |(name, association), hash|
|
||||
if included_associations.include? name
|
||||
if association.embed_in_root?
|
||||
if association.side_load?
|
||||
hash[association.embedded_key] = serialize association
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user