Class: AuthorizationHelpers::Request::SuperAbility
- Inherits:
-
Object
- Object
- AuthorizationHelpers::Request::SuperAbility
- Includes:
- CanCan::Ability
- Defined in:
- lib/spree/core/testing_support/authorization_helpers.rb
Instance Method Summary collapse
-
#initialize(user) ⇒ SuperAbility
constructor
A new instance of SuperAbility.
Constructor Details
#initialize(user) ⇒ SuperAbility
Returns a new instance of SuperAbility.
14 15 16 17 |
# File 'lib/spree/core/testing_support/authorization_helpers.rb', line 14 def initialize(user) # allow anyone to perform index on Order can :manage, :all end |