Add deleted_by to Trashable tables

This commit is contained in:
Robin Ward
2013-07-09 15:20:18 -04:00
parent 4c0fe3bc12
commit b7327942af
18 changed files with 62 additions and 38 deletions

View File

@@ -54,9 +54,9 @@ class Post < ActiveRecord::Base
@types ||= Enum.new(:regular, :moderator_action)
end
def trash!
def trash!(trashed_by=nil)
self.topic_links.each(&:destroy)
super
super(trashed_by)
end
def recover!