mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-22 22:06:50 +00:00
fixing sideloading of nested associations
This commit is contained in:
parent
9436d73b92
commit
9ae5142775
@ -150,7 +150,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