active_model_serializers/test/unit/active_model/array_serializer
Arne Brasseur 1db96ec7a9 When using embed: :ids ; embed_in_root: true, and serializing multiple objects,
only the associated objects of the last object in the collection will actually
show up in the serialized data.

For example, if you serialize a collection of two posts, each containing one or
more comments, only the comments of the last post show up. The reason is a
Hash#merge wich overwrites the array rather than appending to it.

This commit fixes this by merging the collection arrays, rather than the top-level
hashes.
2013-11-11 14:30:34 +01:00
..
embed_in_root_test.rb When using embed: :ids ; embed_in_root: true, and serializing multiple objects, 2013-11-11 14:30:34 +01:00
meta_test.rb Do not convert root and meta_key to Strings 2013-10-18 17:49:20 -02:00
root_test.rb Do not convert root and meta_key to Strings 2013-10-18 17:49:20 -02:00
scope_test.rb Store attributes as they are instead of converting them into Strings 2013-10-18 17:49:20 -02:00
serialize_test.rb Store attributes as they are instead of converting them into Strings 2013-10-18 17:49:20 -02:00