# Copyright (C) 2012-2021 Zammad Foundation, http://zammad-foundation.org/ class Signature < ApplicationModel include ChecksLatestChangeObserved include ChecksHtmlSanitized include HasCollectionUpdate has_many :groups, after_add: :cache_update, after_remove: :cache_update validates :name, presence: true sanitized_html :body collection_push_permission('ticket.agent') end