grape-active_model_serializers/spec
Zander Hill a7ce076ec7 [Issue #13] Add render syntactic sugar
As in issue #13 an example solution provided by @jrhe an implementation
of said feature has been created.

As per the discussion in the thread this is only a helper to be able to
reach the available options provided in the active_model_serializer gem.

usage is as follows:

```ruby
get '/some_path' do
  collection = Collection.all
  render collection, { meta: { current_page: 5 }, meta_key:
    :pagination_info }
end
```

The return value would be:
`{ pagination_info: { current_page: 5 }, collection: [item, item] }`

If given without a `meta_key` it would return as:
`{ meta: { current_page: 5 }, collection: [item, item] }`

Any feedback appreciated.

@zph, @olleolleolle and @bjoska
2014-02-09 22:51:17 +00:00
..
features/grape-active_model_serializers [Issue #13] Add render syntactic sugar 2014-02-09 22:51:17 +00:00
grape-active_model_serializers [Issue #13] Add render syntactic sugar 2014-02-09 22:51:17 +00:00
support Seperates out spec_fakes.rb into support directory" 2013-09-09 12:23:43 +01:00
grape-active_model_serializers_spec.rb Adds stub specs 2013-09-09 12:38:03 +01:00
old_grape_ams_spec.rb Moves aside old tests 2013-09-09 12:26:55 +01:00
spec_helper.rb Added jazz_hands for debugging in development 2013-08-29 15:22:29 +01:00