mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 15:23:06 +00:00
Fixing README.md
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user