Shows who deleted a post

This commit is contained in:
Robin Ward
2013-07-10 16:19:42 -04:00
parent 8888ae4b40
commit 8ffe9e28d6
8 changed files with 80 additions and 47 deletions

View File

@@ -118,6 +118,14 @@ class PostSerializer < BasicPostSerializer
true
end
def deleted_by
BasicUserSerializer.new(object.deleted_by, root: false).as_json
end
def include_deleted_by?
object.deleted_by.present?
end
# Summary of the actions taken on this post
def actions_summary
result = []