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