intridea/grape — pull request #249 by petergoldstein (2012-09-24 05:16:47+00:00)
Title: Pass options when using child representations in Grape::Entity

This is a pull request to resolve issue #247.

The code change is basically as described there - the options passed into value_for is duplicated and slightly massaged to ensure :root is nil and that the :collection key is deleted from the duplicated hash.

In addition to the code change I added a couple of tests to validate this behavior.