signature.rb 321 B

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