about summary refs log tree commit diff
path: root/app/controllers/concerns
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2019-07-25 01:35:49 -0500
committermultiple creatures <dev@multiple-creature.party>2019-07-25 01:35:49 -0500
commit0d17c2bf2e5245245935778588fd642a024aa8d4 (patch)
tree42c3195a8849e6271fbf5db7590d1a056b73a885 /app/controllers/concerns
parent234fae09ad2e789a478858362320e6a3f73b960f (diff)
add all `ActionLog`-able admin & moderator actions to logger
Diffstat (limited to 'app/controllers/concerns')
-rw-r--r--app/controllers/concerns/accountable_concern.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/controllers/concerns/accountable_concern.rb b/app/controllers/concerns/accountable_concern.rb
index 3cdcffc51..bb78f1645 100644
--- a/app/controllers/concerns/accountable_concern.rb
+++ b/app/controllers/concerns/accountable_concern.rb
@@ -2,8 +2,10 @@
 
 module AccountableConcern
   extend ActiveSupport::Concern
+  include LogHelper
 
   def log_action(action, target)
     Admin::ActionLog.create(account: current_account, action: action, target: target)
+    user_friendly_action_log(current_account, action, target)
   end
 end