mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 15:23:06 +00:00
Fix another symbol related typo
This commit is contained in:
@@ -612,7 +612,7 @@ the root document (say, `linked`), you can specify an `embed_in_root_key`:
|
||||
|
||||
```ruby
|
||||
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
|
||||
has_many :comments, :tags
|
||||
|
||||
Reference in New Issue
Block a user