trabajo-afectivo/app/models/macro.rb

17 lines
531 B
Ruby
Raw Normal View History

2016-10-19 03:11:36 +00:00
# Copyright (C) 2012-2016 Zammad Foundation, http://zammad-foundation.org/
2015-10-15 13:23:41 +00:00
class Macro < ApplicationModel
include ChecksClientNotification
include ChecksLatestChangeObserved
2017-05-14 18:41:25 +00:00
include CanSeed
include HasCollectionUpdate
2015-10-15 13:23:41 +00:00
store :perform
validates :name, presence: true
validates :ux_flow_next_up, inclusion: { in: %w[none next_task next_from_overview] }
has_and_belongs_to_many :groups, after_add: :cache_update, after_remove: :cache_update, class_name: 'Group'
collection_push_permission('ticket.agent')
2015-10-15 13:23:41 +00:00
end