Class: Spree::TestingSupport::AuthorizationHelpers::Request::SuperAbility

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

Instance Method Summary collapse

Constructor Details

#initialize(user) ⇒ SuperAbility

Returns a new instance of SuperAbility.



27
28
29
30
# File 'lib/spree/testing_support/authorization_helpers.rb', line 27

def initialize(user)
  # allow anyone to perform anything on anything
  can :manage, :all
end