trabajo-afectivo/app/models/trigger.rb

17 lines
362 B
Ruby
Raw Normal View History

2022-01-01 13:38:12 +00:00
# Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
2016-05-03 00:36:44 +00:00
class Trigger < ApplicationModel
include ChecksConditionValidation
include ChecksHtmlSanitized
include ChecksPerformValidation
2017-05-14 18:41:25 +00:00
include CanSeed
include Trigger::Assets
2016-05-03 00:36:44 +00:00
store :condition
store :perform
validates :name, presence: true
sanitized_html :note
2012-04-10 14:06:46 +00:00
end