Skip to content

Commit 6054080

Browse files
committed
Merge pull request #628 from sachse/readme-fix
Readme typo fixes
2 parents 922dd27 + d673574 commit 6054080

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ to `comments` underneath a `links` key:
521521
class PostSerializer < ActiveModel::Serializer
522522
attributes :id, :title, :body
523523

524-
has_many :comments, embed: ids, embed_namespace: :links
524+
has_many :comments, embed: :ids, embed_namespace: :links
525525
end
526526
```
527527

@@ -612,7 +612,7 @@ the root document (say, `linked`), you can specify an `embed_in_root_key`:
612612

613613
```ruby
614614
class PostSerializer < ActiveModel::Serializer
615-
embed: ids, include: true, embed_in_root_key: :linked
615+
embed :ids, include: true, embed_in_root_key: :linked
616616

617617
attributes: :id, :title, :body
618618
has_many :comments, :tags

0 commit comments

Comments
 (0)