trigger.rb 300 B

12345678910111213
  1. # Copyright (C) 2012-2016 Zammad Foundation, http://zammad-foundation.org/
  2. class Trigger < ApplicationModel
  3. include ChecksConditionValidation
  4. include CanSeed
  5. load 'trigger/assets.rb'
  6. include Trigger::Assets
  7. store :condition
  8. store :perform
  9. validates :name, presence: true
  10. end