rails-api/active_model_serializers — pull request #730 by kurko (2014-11-13 18:42:06+00:00)
Title: Fixes nested has_many links in JSONAPI

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.