delete.rb 404 B

123456789101112131415
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. class PerformChanges::Action::Delete < PerformChanges::Action
  3. def self.phase
  4. :initial
  5. end
  6. def execute(prepared_actions)
  7. Rails.logger.info { "Deleted ticket from #{origin} #{performable.perform.inspect} #{record.class.name}.find(#{id})" }
  8. record.destroy!
  9. prepared_actions.delete(:before_save)
  10. end
  11. end