diff --git a/README.md b/README.md index fbac6525b..4d15a433e 100644 --- a/README.md +++ b/README.md @@ -390,7 +390,7 @@ class PostSerializer < ActiveModel::Serializer attributes :id, :title, :body # look up comments, but use +my_comments+ as the key in JSON - has_many :comments, root: :my_comments + has_many :comments, key: :my_comments end ```