From 375166b2cdc64e430d62651372fdd49551cb1ab5 Mon Sep 17 00:00:00 2001 From: junv Date: Sat, 10 Oct 2015 11:00:45 +0800 Subject: [PATCH] #11 Remove post content from post serializer. --- app/serializers/post_serializer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/serializers/post_serializer.rb b/app/serializers/post_serializer.rb index 0d3ded8..8ae5bce 100644 --- a/app/serializers/post_serializer.rb +++ b/app/serializers/post_serializer.rb @@ -1,6 +1,6 @@ class PostSerializer < ActiveModel::Serializer - attributes :id, :viewed_times, :url, :title, :content, :type, :processed, :good_format, :created_at, :likes_count, :comments_count, + attributes :id, :viewed_times, :url, :title, :type, :processed, :good_format, :created_at, :likes_count, :comments_count, :summary, :thumbnail def thumbnail