added post pruner, added mod action notifications when approving/deleting posts

This commit is contained in:
albert
2011-09-30 11:34:41 -04:00
parent f5e1139eec
commit 3c1a25f6d8
6 changed files with 104 additions and 2 deletions

View File

@@ -1,3 +1,8 @@
class ModAction < ActiveRecord::Base
belongs_to :creator, :class_name => "User"
before_validation :initialize_creator, :on => :create
def initialize_creator
self.creator_id = CurrentUser.id
end
end