trabajo-afectivo/app/models/group.rb

14 lines
458 B
Ruby
Raw Normal View History

2016-10-19 03:11:36 +00:00
# Copyright (C) 2012-2016 Zammad Foundation, http://zammad-foundation.org/
class Group < ApplicationModel
has_and_belongs_to_many :users, after_add: :cache_update, after_remove: :cache_update
2013-09-28 00:07:11 +00:00
belongs_to :email_address
belongs_to :signature
validates :name, presence: true
2013-09-29 16:40:42 +00:00
activity_stream_support permission: 'admin.group'
2013-09-29 16:40:42 +00:00
history_support
notify_clients_support
latest_change_support
end