2016-10-19 03:11:36 +00:00
|
|
|
# Copyright (C) 2012-2016 Zammad Foundation, http://zammad-foundation.org/
|
2013-06-12 15:59:58 +00:00
|
|
|
|
2012-04-16 11:57:33 +00:00
|
|
|
class Group < ApplicationModel
|
2019-01-28 06:04:05 +00:00
|
|
|
include CanBeImported
|
2017-05-02 15:21:13 +00:00
|
|
|
include HasActivityStreamLog
|
|
|
|
include ChecksClientNotification
|
|
|
|
include ChecksLatestChangeObserved
|
|
|
|
include HasHistory
|
2019-03-13 23:51:22 +00:00
|
|
|
include HasObjectManagerAttributesValidation
|
2020-02-20 13:34:03 +00:00
|
|
|
include HasCollectionUpdate
|
|
|
|
include HasTicketCreateScreenImpact
|
2017-01-31 17:13:45 +00:00
|
|
|
|
2019-07-04 11:16:55 +00:00
|
|
|
belongs_to :email_address, optional: true
|
|
|
|
belongs_to :signature, optional: true
|
2018-06-25 10:35:57 +00:00
|
|
|
|
|
|
|
validates :name, presence: true
|
2013-09-29 16:40:42 +00:00
|
|
|
|
2017-01-31 17:13:45 +00:00
|
|
|
activity_stream_permission 'admin.group'
|
2015-04-27 14:15:29 +00:00
|
|
|
end
|