2014-02-03 19:23:00 +00:00
|
|
|
# Copyright (C) 2012-2014 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
|
2013-09-28 00:07:11 +00:00
|
|
|
has_and_belongs_to_many :users, :after_add => :cache_update, :after_remove => :cache_update
|
|
|
|
belongs_to :email_address
|
|
|
|
belongs_to :signature
|
|
|
|
validates :name, :presence => true
|
2013-09-29 16:40:42 +00:00
|
|
|
|
2015-02-15 09:12:27 +00:00
|
|
|
activity_stream_support :role => Z_ROLENAME_ADMIN
|
2013-09-29 16:40:42 +00:00
|
|
|
history_support
|
2013-12-26 21:51:25 +00:00
|
|
|
end
|