mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-23 06:16:50 +00:00
Merge pull request #493 from shakirshakiel/master
fixing sideloading of nested associations
This commit is contained in:
commit
723049e28f
@ -158,7 +158,7 @@ end
|
||||
if included_associations.include? name
|
||||
if association.embed_in_root?
|
||||
association_serializer = build_serializer(association)
|
||||
hash.merge! association_serializer.embedded_in_root_associations
|
||||
hash.merge!(association_serializer.embedded_in_root_associations) {|key, oldval, newval| [newval, oldval].flatten }
|
||||
|
||||
serialized_data = association_serializer.serializable_object
|
||||
key = association.root_key
|
||||
|
||||
Loading…
Reference in New Issue
Block a user