mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 07:16:49 +00:00
Exclude 2.0 form 5.0; update deps
This commit is contained in:
@@ -203,7 +203,7 @@ end
|
||||
if included_associations.include? name
|
||||
association_serializer = build_serializer(association)
|
||||
# we must do this always because even if the current association is not
|
||||
# embeded in root, it might have its own associations that are embeded in root
|
||||
# embedded in root, it might have its own associations that are embedded in root
|
||||
hash.merge!(association_serializer.embedded_in_root_associations) do |key, oldval, newval|
|
||||
if oldval.respond_to?(:to_ary)
|
||||
[oldval, newval].flatten.uniq
|
||||
|
||||
Reference in New Issue
Block a user