nesquena/rabl — pull request #169 by Lytol (2012-02-13 20:53:02+00:00)
Title: Do not include object root nodes on collection if specified

Quick fix to not include object root nodes on a collection if the user specifies `:object_root => false`:

Example:

collection :users, :root => :users, :object_root => false

would result in

{ "users": [ {"key":value}, {"key":value}, ... ] }

One weird thing: If you specify nil, it will pull the object_root_name from the collection name rather than omitting it. I wasn't sure how you'd want this to work since the Ruby world usually treats `nil` and `false` synonymously since they both evaluate to false.