Class: CanTango::PermissionEngine::Selector::Roles
- Defined in:
- lib/cantango/permission_engine/selector/roles.rb
Instance Attribute Summary collapse
-
#roles ⇒ Object
readonly
Returns the value of attribute roles.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(subject) ⇒ Roles
constructor
A new instance of Roles.
Methods inherited from Base
Constructor Details
#initialize(subject) ⇒ Roles
Returns a new instance of Roles.
7 8 9 |
# File 'lib/cantango/permission_engine/selector/roles.rb', line 7 def initialize subject @roles = subject.roles_list end |
Instance Attribute Details
#roles ⇒ Object (readonly)
Returns the value of attribute roles.
5 6 7 |
# File 'lib/cantango/permission_engine/selector/roles.rb', line 5 def roles @roles end |