nesquena/rabl — pull request #199 by radar (2012-03-27 16:39:10+00:00)
Title: Preserve format option when using child

When you call the child method, the `format` option is not preserved, leading `request_format` to return `nil` in some situations. See issue #198 for a description of the problem.

There's two things required to fix this. First, we must not get rid of the `format` option when the `child` method is called, and then, when calling `object_to_hash`, we must use a `reverse_merge` rather than a `merge` to ensure that the `format` parameter isn't inadvertently overriden.

I would have liked to have run the test suite before submitting this pull request, but it [seems to be difficult](http://travis-ci.org/#!/nesquena/rabl/jobs/955078).