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

@@ -100,6 +100,6 @@ class Ban < ActiveRecord::Base
end
def create_mod_action
ModAction.create(:description => %{Banned "#{user_name}":/users/#{user_id} until #{expires_at}})
ModAction.log(%{Banned "#{user_name}":/users/#{user_id} until #{expires_at}})
end
end