about summary refs log tree commit diff
path: root/app/controllers/concerns/accountable_concern.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/concerns/accountable_concern.rb')
-rw-r--r--app/controllers/concerns/accountable_concern.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/app/controllers/concerns/accountable_concern.rb b/app/controllers/concerns/accountable_concern.rb
new file mode 100644
index 000000000..3cdcffc51
--- /dev/null
+++ b/app/controllers/concerns/accountable_concern.rb
@@ -0,0 +1,9 @@
+# frozen_string_literal: true
+
+module AccountableConcern
+  extend ActiveSupport::Concern
+
+  def log_action(action, target)
+    Admin::ActionLog.create(account: current_account, action: action, target: target)
+  end
+end