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