mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 07:16:49 +00:00
Merge pull request #1251 from bf4/collection_serializer
Rename ArraySerializer to CollectionSerializer for clarity
This commit is contained in:
@@ -120,7 +120,7 @@ If you wish to use a serializer other than the default, you can explicitly pass
|
||||
#### 2. For an array resource:
|
||||
|
||||
```ruby
|
||||
# Use the default `ArraySerializer`, which will use `each_serializer` to
|
||||
# Use the default `CollectionSerializer`, which will use `each_serializer` to
|
||||
# serialize each element
|
||||
render json: @posts, each_serializer: PostPreviewSerializer
|
||||
|
||||
|
||||
Reference in New Issue
Block a user