mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-24 14:56:50 +00:00
commit
bf93a4d51a
@ -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