role.rb 306 B

12345678
  1. # Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/
  2. class Role < ApplicationModel
  3. has_and_belongs_to_many :users, :after_add => :cache_update, :after_remove => :cache_update
  4. validates :name, :presence => true
  5. activity_stream_support :role => 'Admin'
  6. end