active_model_serializers/test
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
..
fixtures When using embed: :ids ; embed_in_root: true, and serializing multiple objects, 2013-11-11 14:30:34 +01:00
integration Change hardcoded class in favor of using provided serializer class in AR integration tests 2013-11-03 18:21:21 -02:00
unit/active_model When using embed: :ids ; embed_in_root: true, and serializing multiple objects, 2013-11-11 14:30:34 +01:00
coverage_setup.rb Add coverage tools 2013-10-18 17:49:21 -02:00
test_app.rb Implement Generators 2013-10-18 17:49:21 -02:00
test_helper.rb Require minitest instead of test/unit 2013-10-18 17:49:22 -02:00