mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-24 23:06:50 +00:00
Uses colon on :meta_key
This commit is contained in:
parent
244021d65c
commit
97e7ec1d32
@ -272,7 +272,7 @@ The above usage of `:meta` will produce the following:
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
If you would like to change the meta key name you can use the `meta_key` option:
|
If you would like to change the meta key name you can use the `:meta_key` option:
|
||||||
|
|
||||||
```ruby
|
```ruby
|
||||||
render :json => @posts, :serializer => CustomArraySerializer, :meta => {:total => 10}, :meta_key => 'meta_object'
|
render :json => @posts, :serializer => CustomArraySerializer, :meta => {:total => 10}, :meta_key => 'meta_object'
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user