Fix doc for meta_key (#1869)

This commit is contained in:
Vinod Lala 2016-08-03 12:13:11 -04:00 committed by Benjamin Fleischer
parent 4ce4a6265c
commit b1495a1560

View File

@ -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: 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_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: The above usage of `:meta_key` will produce the following: