template.rb 434 B

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