add modaction helper
This commit is contained in:
@@ -15,6 +15,10 @@ class ModAction < ActiveRecord::Base
|
||||
q
|
||||
end
|
||||
|
||||
def self.log(desc)
|
||||
create(:description => desc)
|
||||
end
|
||||
|
||||
def initialize_creator
|
||||
self.creator_id = CurrentUser.id
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user