accountable_concern.rb 219 B

123456789
  1. # frozen_string_literal: true
  2. module AccountableConcern
  3. extend ActiveSupport::Concern
  4. def log_action(action, target)
  5. Admin::ActionLog.create(account: current_account, action: action, target: target)
  6. end
  7. end