Class: Ability::Administrator

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

Overview

Privileges granted users with the administrator role

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(user) ⇒ Administrator

Returns a new instance of Administrator.


14
15
16
17
# File 'app/models/ability/administrator.rb', line 14

def initialize(user)
  @user = user
  grant_privileges
end

Instance Attribute Details

#userObject (readonly)

Returns the value of attribute user.


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

def user
  @user
end