Remove topic_auto_close at from PostSerializer

We should look at extracting some of the cruft from these repsonses.
This commit is contained in:
riking 2015-03-02 11:00:19 -08:00
parent 832fefac26
commit 4cc22a55a0
1 changed files with 0 additions and 5 deletions

View File

@ -27,7 +27,6 @@ class PostSerializer < BasicPostSerializer
:yours,
:topic_id,
:topic_slug,
:topic_auto_close_at,
:display_username,
:primary_group_name,
:version,
@ -72,10 +71,6 @@ class PostSerializer < BasicPostSerializer
object.try(:topic).try(:slug)
end
def topic_auto_close_at
object.try(:topic).try(:auto_close_at)
end
def moderator?
!!(object.try(:user).try(:moderator?))
end