Class: Arkaan::Permissions::Right

Inherits:
Object
  • Object
show all
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.

Author:

Instance Attribute Summary collapse

Instance Attribute Details

#groupsArray<Arkaan::Permissions::Group>

Returns the groups granted with the permission to access features opened by this right.

Returns:



12
# File 'lib/arkaan/permissions/right.rb', line 12

has_and_belongs_to_many :groups, class_name: 'Arkaan::Permissions::Group', inverse_of: :rights