rails-api/active_model_serializers — pull request #623 by gauthier-delacroix (2014-09-01 09:45:28+00:00)
Title: Allow ArraySerializer to inherit :each_serializer root

**This PR replaces #619 as there was too many conflicts after multiple rebases.**

This change make ArraySerializer inherit `each_serializer`'s root when no specific root is set.

I'ts just a way to avoid definig root twice and keep things DRY.

JSON API now requires the same (plural) root for single resource and collections.