zammad/app/models/template.rb
2026-01-02 15:41:09 +02:00

18 lines
471 B
Ruby

# Copyright (C) 2012-2026 Zammad Foundation, https://zammad-foundation.org/
class Template < ApplicationModel
include ChecksClientNotification
include HasSearchIndexBackend
include CanSelector
include CanSearch
include Template::Assets
include Template::TriggersSubscriptions
scope :active, -> { where(active: true) }
scope :sorted, -> { order(:name) }
store :options
validates :name, presence: true
association_attributes_ignored :user
end