Class: Ability::BaseUser

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

Overview

Privileges granted to any logged in users

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(user) ⇒ BaseUser

Returns a new instance of BaseUser.


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

def user
  @user
end