accountable_concern.rb 243 B

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