Added some macros to simplify code

This commit is contained in:
Robin Ward
2013-07-10 14:56:00 -04:00
parent 1fef617818
commit 8888ae4b40
17 changed files with 82 additions and 82 deletions

View File

@ -40,7 +40,8 @@ class PostSerializer < BasicPostSerializer
:hidden,
:hidden_reason_id,
:deleted_at,
:trust_level
:trust_level,
:deleted_by
def moderator?
@ -72,7 +73,6 @@ class PostSerializer < BasicPostSerializer
end
def link_counts
return @single_post_link_counts if @single_post_link_counts.present?
# TODO: This could be better, just porting the old one over