diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2021-12-05 21:48:39 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-05 21:48:39 +0100 |
commit | 0fb9536d3888cd7b6013c239d5be85f095a6e8ad (patch) | |
tree | 6069121c5535398eeeb65c8ad082d8176f100ab3 /app/controllers/concerns | |
parent | 2e2ea6bb6b409a706c6e76ed63307a2a1f4f1ae7 (diff) |
Add batch suspend for accounts in admin UI (#17009)
Diffstat (limited to 'app/controllers/concerns')
-rw-r--r-- | app/controllers/concerns/accountable_concern.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/concerns/accountable_concern.rb b/app/controllers/concerns/accountable_concern.rb index 3cdcffc51..87d62478d 100644 --- a/app/controllers/concerns/accountable_concern.rb +++ b/app/controllers/concerns/accountable_concern.rb @@ -3,7 +3,7 @@ module AccountableConcern extend ActiveSupport::Concern - def log_action(action, target) - Admin::ActionLog.create(account: current_account, action: action, target: target) + def log_action(action, target, options = {}) + Admin::ActionLog.create(account: current_account, action: action, target: target, recorded_changes: options.stringify_keys) end end |