group.rb 409 B

1234567891011
  1. # Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/
  2. class Group < ApplicationModel
  3. has_and_belongs_to_many :users, :after_add => :cache_update, :after_remove => :cache_update
  4. belongs_to :email_address
  5. belongs_to :signature
  6. validates :name, :presence => true
  7. activity_stream_support :role => 'Admin'
  8. history_support
  9. end