mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-23 14:29:31 +00:00
When linked resource had has_many links, all of them would use the association from the first resource, causing all of the items to build `links` with the same associations. This fixes it by iterating over the serializers, not just the attributes array. |
||
|---|---|---|
| .. | ||
| belongs_to_test.rb | ||
| collection_test.rb | ||
| has_many_embed_ids_test.rb | ||
| has_many_test.rb | ||
| linked_test.rb | ||