From 6fb61626225a7890f1cdb9e0849625b80e94961d Mon Sep 17 00:00:00 2001 From: Joao Moura Date: Thu, 23 Oct 2014 18:22:21 -0200 Subject: [PATCH] Fixing README at 0.9.0 and removing reference to attribute method #657 --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 012b3782..e862bf0e 100644 --- a/README.md +++ b/README.md @@ -257,7 +257,7 @@ ActiveModel::Serializer.setup do |config| end ```` -This will build association keys like `comments` or `author` instead of `comment_ids` or `author_id`. +This will build association keys like `comments` or `author` instead of `comment_ids` or `author_id`. ## Getting the old version @@ -304,7 +304,7 @@ Since this shadows any attribute named `object`, you can include them through `o ```ruby class VersionSerializer < ActiveModel::Serializer - attribute :version_object, key: :object + attributes :version_object def version_object object.object