1234567891011121314151617181920212223242526272829 |
- # Copyright (C) 2012-2023 Zammad Foundation, https://zammad-foundation.org/
- class Group < ApplicationModel
- include CanBeImported
- include HasActivityStreamLog
- include ChecksClientNotification
- include ChecksHtmlSanitized
- include HasHistory
- include HasObjectManagerAttributes
- include HasCollectionUpdate
- include HasSearchIndexBackend
- include Group::Assets
- belongs_to :email_address, optional: true
- belongs_to :signature, optional: true
- # workflow checks should run after before_create and before_update callbacks
- include ChecksCoreWorkflow
- core_workflow_screens 'create', 'edit'
- validates :name, presence: true
- validates :note, length: { maximum: 250 }
- sanitized_html :note, no_images: true
- activity_stream_permission 'admin.group'
- end
|