Class: Ability::SampleManagementManager

Inherits:
Object
  • Object
show all
Includes:
Ability::Shared::SampleManagementUser, CanCan::Ability
Defined in:
app/models/ability/sample_management_manager.rb

Overview

Privileges granted to users with the slf_manager role

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(user) ⇒ SampleManagementManager

Returns a new instance of SampleManagementManager.


11
12
13
14
# File 'app/models/ability/sample_management_manager.rb', line 11

def initialize(user)
  @user = user
  grant_privileges
end

Instance Attribute Details

#userObject (readonly)

Returns the value of attribute user.


9
10
11
# File 'app/models/ability/sample_management_manager.rb', line 9

def user
  @user
end