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
|
|
|
|
2013-02-01 08:53:14 +00:00
|
|
|
class Sla < ApplicationModel
|
2017-01-31 17:13:45 +00:00
|
|
|
include NotifiesClients
|
2017-04-27 14:57:19 +00:00
|
|
|
include ValidatesCondition
|
2017-01-31 17:13:45 +00:00
|
|
|
|
2016-03-20 19:09:52 +00:00
|
|
|
load 'sla/assets.rb'
|
|
|
|
include Sla::Assets
|
|
|
|
|
2015-12-11 16:00:04 +00:00
|
|
|
store :condition
|
|
|
|
store :data
|
|
|
|
validates :name, presence: true
|
|
|
|
belongs_to :calendar
|
2013-06-12 15:59:58 +00:00
|
|
|
end
|