Class: Ability::BaseUser
- Inherits:
-
Object
- Object
- Ability::BaseUser
- Includes:
- CanCan::Ability
- Defined in:
- app/models/ability/base_user.rb
Overview
Privileges granted to any logged in users
Instance Attribute Summary collapse
-
#user ⇒ Object
readonly
Returns the value of attribute user.
Instance Method Summary collapse
-
#initialize(user) ⇒ BaseUser
constructor
A new instance of BaseUser.
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
#user ⇒ Object (readonly)
Returns the value of attribute user.
7 8 9 |
# File 'app/models/ability/base_user.rb', line 7 def user @user end |