mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-24 14:56:50 +00:00
Fix another symbol related typo
This commit is contained in:
parent
4abcd3209e
commit
d6735749b3
@ -612,7 +612,7 @@ the root document (say, `linked`), you can specify an `embed_in_root_key`:
|
|||||||
|
|
||||||
```ruby
|
```ruby
|
||||||
class PostSerializer < ActiveModel::Serializer
|
class PostSerializer < ActiveModel::Serializer
|
||||||
embed: ids, include: true, embed_in_root_key: :linked
|
embed :ids, include: true, embed_in_root_key: :linked
|
||||||
|
|
||||||
attributes: :id, :title, :body
|
attributes: :id, :title, :body
|
||||||
has_many :comments, :tags
|
has_many :comments, :tags
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user