2021-06-01 12:20:20 +00:00
|
|
|
# Copyright (C) 2012-2021 Zammad Foundation, http://zammad-foundation.org/
|
2013-06-12 15:59:58 +00:00
|
|
|
|
2016-05-03 00:36:44 +00:00
|
|
|
class Trigger < ApplicationModel
|
2017-05-02 15:21:13 +00:00
|
|
|
include ChecksConditionValidation
|
2019-01-29 14:04:47 +00:00
|
|
|
include ChecksPerformValidation
|
2017-05-14 18:41:25 +00:00
|
|
|
include CanSeed
|
2017-04-27 14:57:19 +00:00
|
|
|
|
2017-11-23 08:14:03 +00:00
|
|
|
include Trigger::Assets
|
|
|
|
|
2016-05-03 00:36:44 +00:00
|
|
|
store :condition
|
|
|
|
store :perform
|
|
|
|
validates :name, presence: true
|
2012-04-10 14:06:46 +00:00
|
|
|
end
|