mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-23 14:29:31 +00:00
Revert "Merge pull request #186 from gerfuls/master"
This reverts commitd030cd99cf, reversing changes made toa1d5561eac.
This commit is contained in:
parent
d030cd99cf
commit
cef10cf01d
@ -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:
|
||||
|
||||
```ruby
|
||||
ActiveSupport.on_load(:active_model_serializer) do
|
||||
ActiveSupport.on_load(:active_model_serializers) do
|
||||
self.root = false
|
||||
end
|
||||
```
|
||||
|
||||
Loading…
Reference in New Issue
Block a user