From f02f5b767a3c8ac213476ebbbaa3ff28d5566b22 Mon Sep 17 00:00:00 2001 From: Laurent Arnoud Date: Wed, 27 Aug 2014 11:48:14 +0200 Subject: [PATCH] README: typo fix on attributes --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 666d9a2f..441a5379 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ serializers: ```ruby class PostSerializer < ActiveModel::Serializer - attribute :title, :body + attributes :title, :body has_many :comments @@ -43,7 +43,7 @@ and ```ruby class CommentSerializer < ActiveModel::Serializer - attribute :name, :body + attributes :name, :body belongs_to :post @@ -115,7 +115,7 @@ The generated seralizer will contain basic `attributes` and ```ruby class PostSerializer < ActiveModel::Serializer - attribute :title, :body + attributes :title, :body has_many :comments @@ -127,7 +127,7 @@ and ```ruby class CommentSerializer < ActiveModel::Serializer - attribute :name, :body + attributes :name, :body belongs_to :post_id