add modaction helper

This commit is contained in:
Albert Yi
2017-01-03 15:04:47 -08:00
parent ad4b55c334
commit 4d698bf98b
10 changed files with 23 additions and 19 deletions

View File

@@ -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