trabajo-afectivo/app/models/trigger.rb

17 lines
361 B
Ruby
Raw Permalink Normal View History

# Copyright (C) 2012-2021 Zammad Foundation, http://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