signature.rb 404 B

1234567891011121314
  1. # Copyright (C) 2012-2022 Zammad Foundation, https://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, :note
  9. collection_push_permission('ticket.agent')
  10. end