1234567891011121314151617 |
- # Copyright (C) 2012-2023 Zammad Foundation, https://zammad-foundation.org/
- class Trigger < ApplicationModel
- include ChecksConditionValidation
- include ChecksHtmlSanitized
- include CanSeed
- include Trigger::Assets
- store :condition
- store :perform
- validates :name, presence: true
- validates :perform, 'validations/verify_perform_rules': true
- validates :note, length: { maximum: 250 }
- sanitized_html :note
- end
|