rails-api/active_model_serializers — pull request #319 by geigerzaehler (2013-05-29 10:25:05+00:00)
Title: Refactor to decouple controller mixin from AM::Serializer

Since `AM::Serializer.build_json` is highly dependent on the controller it should be a helper function of the controller. Functionality hasn't changed.

Eventually it would be great to unify the usage of the root attribute for arrays and single objects to get rid of the awkward lines 61-65.