trigger.rb 438 B

1234567891011121314151617
  1. # Copyright (C) 2012-2023 Zammad Foundation, https://zammad-foundation.org/
  2. class Trigger < ApplicationModel
  3. include ChecksConditionValidation
  4. include ChecksHtmlSanitized
  5. include CanSeed
  6. include Trigger::Assets
  7. store :condition
  8. store :perform
  9. validates :name, presence: true
  10. validates :perform, 'validations/verify_perform_rules': true
  11. validates :note, length: { maximum: 250 }
  12. sanitized_html :note
  13. end