rails-api/active_model_serializers — pull request #617 by konukhov (2014-08-29 04:30:04+00:00)
Title: Namespaced serializers #499

So, here's what I did.

+ Serializers for associations are being looked up in a parent serializer's namespace first.
+ Same with controllers' namespaces.
+ Added a "prefix" option in case you want to use a different version of serializer. (For example, I prefer making lighter versions of serializers for associations, has_many :users, prefix: :short -> renders ShortUserSerializer).

Might be dirty, any ideas how to make this cleaner?

@steveklabnik