mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-22 22:06:50 +00:00
Fixing README.md
This commit is contained in:
parent
ad886495a1
commit
5f9209e619
@ -181,7 +181,7 @@ render :json => @posts, :each_serializer => FancyPostSerializer
|
|||||||
|
|
||||||
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 children 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 the options may be `root: false`
|
||||||
|
|
||||||
```ruby
|
```ruby
|
||||||
def default_serializer_options
|
def default_serializer_options
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user