signature.rb 396 B

1234567891011121314
  1. # Copyright (C) 2012-2016 Zammad Foundation, http://zammad-foundation.org/
  2. class Signature < ApplicationModel
  3. include ChecksLatestChangeObserved
  4. include ChecksHtmlSanitized
  5. include HasCollectionUpdate
  6. has_many :groups, after_add: :cache_update, after_remove: :cache_update
  7. validates :name, presence: true
  8. sanitized_html :body
  9. collection_push_permission('ticket.agent')
  10. end