trabajo-afectivo/app/models/role.rb

11 lines
352 B
Ruby
Raw Normal View History

2014-02-03 19:23:00 +00:00
# Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/
class Role < ApplicationModel
has_and_belongs_to_many :users, after_add: :cache_update, after_remove: :cache_update
validates :name, presence: true
activity_stream_support role: Z_ROLENAME_ADMIN
notify_clients_support
latest_change_support
end