2016-10-19 03:11:36 +00:00
|
|
|
# Copyright (C) 2012-2016 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-04-27 14:57:19 +00:00
|
|
|
include ValidatesCondition
|
|
|
|
|
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
|