Class: Spree::TestingSupport::AuthorizationHelpers::Request::SuperAbility
- Inherits:
-
Object
- Object
- Spree::TestingSupport::AuthorizationHelpers::Request::SuperAbility
- Includes:
- CanCan::Ability
- Defined in:
- lib/spree/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.
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 |