2013-06-12 15:59:58 +00:00
|
|
|
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
|
|
|
|
|
2012-04-16 11:57:33 +00:00
|
|
|
class Role < ApplicationModel
|
2013-09-28 00:07:11 +00:00
|
|
|
has_and_belongs_to_many :users, :after_add => :cache_update, :after_remove => :cache_update
|
|
|
|
validates :name, :presence => true
|
|
|
|
activity_stream_support :role => 'Admin'
|
2012-04-10 14:06:46 +00:00
|
|
|
end
|