signature.rb 367 B

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