mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-22 22:06:50 +00:00
Merge pull request #634 from craiglittle/fix-meta-documentation
Fix meta_key/meta documentation for v0.9.x series
This commit is contained in:
commit
21fe89e9bb
@ -365,7 +365,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:
|
||||
|
||||
```ruby
|
||||
render json: @posts, serializer: CustomArraySerializer, meta: {total: 10}, meta_key: 'meta_object'
|
||||
render json: @posts, serializer: CustomArraySerializer, meta_object: {total: 10}, meta_key: 'meta_object'
|
||||
```
|
||||
|
||||
The above usage of `:meta_key` will produce the following:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user