intridea/grape — pull request #103 by evansj (2011-12-16 17:43:49+00:00)
Title: Root keys for entity representations - another version

This is a much simpler patch than last time.

It lets you do this:

```ruby
present object, :root => 'thing'
```

which will render out ```{ 'thing' => object }```

I would like to be able to support ```:root => true```, and have it introspect the object to find out its name, and pluralize it if presenting an array. The problem is, what root key should the code use if it is asked to present an empty array, or an array containing different objects?