Class: Arkaan::Permissions::Right
- Inherits:
-
Object
- Object
- Arkaan::Permissions::Right
- Includes:
- Concerns::Sluggable, Mongoid::Document, Mongoid::Timestamps
- Defined in:
- lib/arkaan/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<Arkaan::Permissions::Group>
The groups granted with the permission to access features opened by this right.
Instance Attribute Details
#groups ⇒ Array<Arkaan::Permissions::Group>
Returns the groups granted with the permission to access features opened by this right.
16 |
# File 'lib/arkaan/permissions/right.rb', line 16 has_and_belongs_to_many :groups, class_name: 'Arkaan::Permissions::Group', inverse_of: :rights |