mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-23 06:16:50 +00:00
Merge pull request #291 from silviorelli/patch-1
Update README.md [ci skip]
This commit is contained in:
commit
7a39966e7e
@ -135,7 +135,7 @@ render :json => @posts, :root => "some_posts"
|
||||
```
|
||||
|
||||
You may disable the root element for arrays at the top level, which will result in
|
||||
more concise json. To disable the root element for arrays, you have 3 options:
|
||||
more concise json. To disable the root element for arrays, you have 4 options:
|
||||
|
||||
#### 1. Disable root globally for in `ArraySerializer`. In an initializer:
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user