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


16
17
18
19
# File 'lib/spree/testing_support/authorization_helpers.rb', line 16

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