mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-22 22:06:50 +00:00
Fix typo
This commit is contained in:
parent
93ca27fe44
commit
d6b1b1c81f
@ -117,7 +117,7 @@ ex.
|
||||
You can also achieve the same result if you have a helper method that adds the pagination info in the meta tag. For instance, in your action specify a custom serializer.
|
||||
|
||||
```ruby
|
||||
render json: @posts, each_serializer: PostPreviewSerializer, meta: meta_attributes(@post)
|
||||
render json: @posts, each_serializer: PostPreviewSerializer, meta: meta_attributes(@posts)
|
||||
```
|
||||
|
||||
```ruby
|
||||
|
||||
Loading…
Reference in New Issue
Block a user