From 4abcd3209e7a468d3cfbd6abf3ee19d78169f680 Mon Sep 17 00:00:00 2001 From: Kristoffer Date: Tue, 2 Sep 2014 22:23:58 +0200 Subject: [PATCH 1/2] String to symbol --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ec9a0200..1727d0c0 100644 --- a/README.md +++ b/README.md @@ -521,7 +521,7 @@ to `comments` underneath a `links` key: class PostSerializer < ActiveModel::Serializer attributes :id, :title, :body - has_many :comments, embed: ids, embed_namespace: :links + has_many :comments, embed: :ids, embed_namespace: :links end ``` From d6735749b32d5cd5cef8437787e3219c8fc38d30 Mon Sep 17 00:00:00 2001 From: Kristoffer Date: Tue, 2 Sep 2014 22:29:22 +0200 Subject: [PATCH 2/2] Fix another symbol related typo --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1727d0c0..fbcf9152 100644 --- a/README.md +++ b/README.md @@ -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