Class: AuthorizationHelpers::Request::SuperAbility

Inherits:
Object
  • Object
show all
Includes:
CanCan::Ability
Defined in:
lib/spree/core/testing_support/authorization_helpers.rb

Instance Method Summary collapse

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