Class: Ability::DataAccessCoordinator

Inherits:
Object
  • Object
show all
Includes:
CanCan::Ability
Defined in:
app/models/ability/data_access_coordinator.rb

Overview

Privileges granted to users with the lab_manager role

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(user) ⇒ DataAccessCoordinator

Returns a new instance of DataAccessCoordinator.


9
10
11
12
# File 'app/models/ability/data_access_coordinator.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/data_access_coordinator.rb', line 7

def user
  @user
end