apotonick/roar-rails — pull request #39 by guiocavalcanti (2013-05-13 17:56:15+00:00)
Title: Infers entity representer when just collection representer is specified.

When I use the ``represents`` method specifiying the collection representer only, RepresenterComputer fails to infer the entity representer.

The rules I followed:

- SingersController with ``represents :json, :entity => SingerRepresenter``: infers SingersRepresenters for the collection
- SingersController with ``represents :json, :collection => SingersRepresenter``: infer SingerRepresenter for the entity