From da85d944d43527567ab73f12f550b006b4e5bc9b Mon Sep 17 00:00:00 2001 From: Nate Sullivan Date: Sat, 23 Jan 2016 18:50:16 -0800 Subject: [PATCH] Remove unrelated code from attribute override examples --- docs/general/serializers.md | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/docs/general/serializers.md b/docs/general/serializers.md index db0c37b4..d6c5ba2a 100644 --- a/docs/general/serializers.md +++ b/docs/general/serializers.md @@ -188,8 +188,6 @@ If you want to override any association, you can use: ```ruby class PostSerializer < ActiveModel::Serializer - attributes :id, :body - has_many :comments def comments @@ -204,9 +202,7 @@ If you want to override any attribute, you can use: ```ruby class PostSerializer < ActiveModel::Serializer - attributes :id, :body - - has_many :comments + attributes :body def body object.body.downcase