Skip to content

Commit b1495a1

Browse files
vinodlalabf4
authored andcommitted
Fix doc for meta_key (#1869)
1 parent 4ce4a62 commit b1495a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ The above usage of `:meta` will produce the following:
378378
If you would like to change the meta key name you can use the `:meta_key` option:
379379

380380
```ruby
381-
render json: @posts, serializer: CustomArraySerializer, meta_object: {total: 10}, meta_key: 'meta_object'
381+
render json: @posts, serializer: CustomArraySerializer, meta_object: { total: 10 }, meta_key: :meta_object
382382
```
383383

384384
The above usage of `:meta_key` will produce the following:

0 commit comments

Comments
 (0)