Merge pull request #186 from gerfuls/master

Fixed typo for turning off global root
This commit is contained in:
Steve Klabnik 2013-01-12 17:26:38 -08:00
commit d030cd99cf

View File

@ -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_serializers) do
ActiveSupport.on_load(:active_model_serializer) do
self.root = false
end
```