2013-02-01 08:53:14 +00:00
|
|
|
class Sla < ApplicationModel
|
|
|
|
store :condition
|
|
|
|
store :data
|
|
|
|
validates :name, :presence => true
|
2013-03-07 07:13:56 +00:00
|
|
|
|
|
|
|
after_create :escalation_calculation_rebuild
|
|
|
|
after_update :escalation_calculation_rebuild
|
|
|
|
|
|
|
|
private
|
|
|
|
def escalation_calculation_rebuild
|
|
|
|
Ticket.escalation_calculation_rebuild
|
|
|
|
end
|
2013-02-01 08:53:14 +00:00
|
|
|
end
|