mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-22 22:06:50 +00:00
Fix doc for meta_key (#1869)
This commit is contained in:
parent
4ce4a6265c
commit
b1495a1560
@ -378,7 +378,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_object: {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