lib/jsonapi/resource_serializer.rb in jsonapi-resources-0.8.0.beta2 vs lib/jsonapi/resource_serializer.rb in jsonapi-resources-0.8.0.beta3

- old
+ new

@@ -346,10 +346,10 @@ type = object_hash['type'] @included_objects[type] = {} unless @included_objects.key?(type) if already_serialized?(type, id) - @included_objects[type][id][:object_hash].merge!(object_hash) + @included_objects[type][id][:object_hash].deep_merge!(object_hash) set_primary(type, id) if primary else @included_objects[type].store(id, primary: primary, object_hash: object_hash) end end