Class: Virtuaservices::Permissions::Right
- Inherits:
-
Object
- Object
- Virtuaservices::Permissions::Right
- Includes:
- Mongoid::Document, Mongoid::Timestamps, Concerns::Sluggable
- Defined in:
- lib/virtuaservices/permissions/right.rb
Overview
A right is the access to one or several features in the application. It’s applied to a group, and transitively to an account.
Instance Attribute Summary collapse
-
#groups ⇒ Array<Virtuaservices::Permissions::Group>
The groups granted with the permission to access features opened by this right.
Instance Attribute Details
#groups ⇒ Array<Virtuaservices::Permissions::Group>
Returns the groups granted with the permission to access features opened by this right.
12 |
# File 'lib/virtuaservices/permissions/right.rb', line 12 has_and_belongs_to_many :groups, class_name: 'Virtuaservices::Permissions::Group', inverse_of: :rights |