mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-22 22:06:50 +00:00
Update README.md
Spelling and murkup mistakes fixed.
This commit is contained in:
parent
fde724e210
commit
ccc9c2c696
@ -170,8 +170,9 @@ To specify a custom serializer for the items within an array:
|
|||||||
render :json => @posts, :each_serializer => FancyPostSerializer
|
render :json => @posts, :each_serializer => FancyPostSerializer
|
||||||
```
|
```
|
||||||
#### 4. Define default_serializer_options in your controller
|
#### 4. Define default_serializer_options in your controller
|
||||||
|
|
||||||
If you define `default_serializer_options` method in your controller,
|
If you define `default_serializer_options` method in your controller,
|
||||||
all serializers in actions of this controller and it's shildren will use them.
|
all serializers in actions of this controller and it's children will use them.
|
||||||
One of options may be `root: false`
|
One of options may be `root: false`
|
||||||
|
|
||||||
```ruby
|
```ruby
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user