intridea/grape — pull request #600 by fuksito (2014-03-19 21:07:24+00:00)
Title: do not use any Entity constant that is available in namespace, as it can...

I experienced problem with grape when I had an active record model in my project with name Entity. This model is not connected with grape at all, but grape looks for any constant with name Entity, and tries to use it to present values that does not have explicit presenter, like simple strings. So it is usual case to see errors like:

undefined method `represent' for #

by this PL I suggest to make at least check that an object has such method before calling it. Ideally I suppose would be ability to config the name of an auto-detect entity class or be able to disable it