Class: Ability::QaManager

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

Instance Method Summary collapse

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

#userObject (readonly)

Returns the value of attribute user.



7
8
9
# File 'app/models/ability/qa_manager.rb', line 7

def user
  @user
end