Keep track of who deletes forum post/topic/comment

Previously it would look like the creator of it was the one who
deleted/undeleted it, even if it was someone else.
This commit is contained in:
Toks
2015-07-11 13:20:47 -04:00
parent 87d3058258
commit fe7f3d8204
4 changed files with 13 additions and 5 deletions

View File

@@ -173,7 +173,7 @@ class Comment < ActiveRecord::Base
end
def delete!
update_attribute(:is_deleted, true)
update_attributes(:is_deleted => true)
end
end