Class: Spree::Ability
- Inherits:
-
Object
- Object
- Spree::Ability
- Includes:
- CanCan::Ability
- Defined in:
- app/models/spree/ability.rb
Instance Attribute Summary collapse
-
#store ⇒ Spree::Store?
readonly
The current store.
-
#user ⇒ Object
readonly
The current user.
Instance Method Summary collapse
-
#initialize(user, options = {}) ⇒ Ability
constructor
A new instance of Ability.
Constructor Details
Instance Attribute Details
#store ⇒ Spree::Store? (readonly)
Returns the current store.
22 23 24 |
# File 'app/models/spree/ability.rb', line 22 def store @store end |
#user ⇒ Object (readonly)
Returns the current user.
19 20 21 |
# File 'app/models/spree/ability.rb', line 19 def user @user end |