unset_attributes.rb 293 B

12345678910111213
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. class Sequencer::Unit::Common::UnsetAttributes < Sequencer::Unit::Base
  3. def process
  4. uses = self.class.uses
  5. return if uses.blank?
  6. uses.each do |attribute|
  7. state.unset(attribute)
  8. end
  9. end
  10. end