mirror of
https://github.com/zammad/zammad
synced 2026-05-24 09:48:36 +00:00
18 lines
471 B
Ruby
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
|