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

@@ -423,7 +423,7 @@ class User < ActiveRecord::Base
def create_mod_action
if level_changed?
ModAction.create(:description => %{"#{name}":/users/#{id} level changed #{level_string_was} -> #{level_string}})
ModAction.log(%{"#{name}":/users/#{id} level changed #{level_string_was} -> #{level_string}})
end
end