mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-22 22:06:50 +00:00
Update README.md
Fixed typo in documentation about the number of options to disable the root element for arrays
This commit is contained in:
parent
329a38a7dd
commit
9ca71c2443
@ -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