Class: Spree::PermissionSets::ProductManagement

Inherits:
Base
  • Object
show all
Defined in:
lib/spree/permission_sets/product_management.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Spree::PermissionSets::Base

Instance Method Details

#activate!Object



6
7
8
9
10
11
12
13
14
15
16
17
18
# File 'lib/spree/permission_sets/product_management.rb', line 6

def activate!
  can :manage, Spree::Classification
  can :manage, Spree::Image
  can :manage, Spree::OptionType
  can :manage, Spree::OptionValue
  can :manage, Spree::Price
  can :manage, Spree::Product
  can :manage, Spree::ProductProperty
  can :manage, Spree::Property
  can :manage, Spree::Taxon
  can :manage, Spree::Taxonomy
  can :manage, Spree::Variant
end