Class: AmazonAbility

Inherits:
Object
  • Object
show all
Includes:
CanCan::Ability
Defined in:
app/models/amazon_ability.rb

Instance Method Summary collapse

Constructor Details

#initialize(user) ⇒ AmazonAbility

Returns a new instance of AmazonAbility



4
5
6
7
# File 'app/models/amazon_ability.rb', line 4

def initialize(user)
  can :manage, Spree::Amazon::Taxon
  can :manage, Spree::Amazon::Product
end