mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-22 22:06:50 +00:00
Fixed README typo
This commit is contained in:
parent
a1d5561eac
commit
016412b3d7
@ -140,7 +140,7 @@ more concise json. To disable the root element for arrays, you have 3 options:
|
|||||||
#### 1. Disable root globally for in `ArraySerializer`. In an initializer:
|
#### 1. Disable root globally for in `ArraySerializer`. In an initializer:
|
||||||
|
|
||||||
```ruby
|
```ruby
|
||||||
ActiveSupport.on_load(:active_model_serializers) do
|
ActiveSupport.on_load(:active_model_serializer) do
|
||||||
self.root = false
|
self.root = false
|
||||||
end
|
end
|
||||||
```
|
```
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user