Class: Ability::QaManager
- Inherits:
-
Object
- Object
- Ability::QaManager
- Includes:
- CanCan::Ability
- Defined in:
- app/models/ability/qa_manager.rb
Overview
Privileges granted to users with the lab_manager role
Instance Attribute Summary collapse
-
#user ⇒ Object
readonly
Returns the value of attribute user.
Instance Method Summary collapse
-
#initialize(user) ⇒ QaManager
constructor
A new instance of QaManager.
Constructor Details
#initialize(user) ⇒ QaManager
Returns a new instance of QaManager.
9 10 11 12 |
# File 'app/models/ability/qa_manager.rb', line 9 def initialize(user) @user = user grant_privileges end |
Instance Attribute Details
#user ⇒ Object (readonly)
Returns the value of attribute user.
7 8 9 |
# File 'app/models/ability/qa_manager.rb', line 7 def user @user end |