Skip to content

Commit e900843

Browse files
committed
Fix meta_key/meta documentation
This updates the documentation to reflect the behavior implemented by the v0.9.x series. Note that this behavior differs from that of the v0.8.x series, which is reflected by the current documentation. Consideration should be given to patching the v0.9.x series to revert back to the v0.8.x behavior since I'm not entirely sure if this slight change was intentional, but for the time being, this at least documents the existing behavior correctly.
1 parent 6054080 commit e900843

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
@@ -354,7 +354,7 @@ The above usage of `:meta` will produce the following:
354354
If you would like to change the meta key name you can use the `:meta_key` option:
355355

356356
```ruby
357-
render json: @posts, serializer: CustomArraySerializer, meta: {total: 10}, meta_key: 'meta_object'
357+
render json: @posts, serializer: CustomArraySerializer, meta_object: {total: 10}, meta_key: 'meta_object'
358358
```
359359

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

0 commit comments

Comments
 (0)