Handle destroyed records in action log

pull/30423/head
Matt Jankowski 2024-05-27 09:34:59 -04:00
parent cbc4766702
commit d32889bd98
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@ module AccountableConcern
extend ActiveSupport::Concern
def log_action(action, target)
return unless target.previous_changes.any?
return unless target.previous_changes.any? || target.destroyed?
Admin::ActionLog.create(
account: current_account,