template.rb 318 B

12345678910111213
  1. # Copyright (C) 2012-2023 Zammad Foundation, https://zammad-foundation.org/
  2. class Template < ApplicationModel
  3. include ChecksClientNotification
  4. include Template::Assets
  5. scope :active, -> { where(active: true) }
  6. store :options
  7. validates :name, presence: true
  8. association_attributes_ignored :user
  9. end