Merge pull request #3246 from riking/patch-2

Remove topic_auto_close_at from PostSerializer
This commit is contained in:
Régis Hanol 2015-03-16 09:53:38 +01:00
commit ad8bf65053

View file

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