Class: Spree::PermissionSets::ConfigurationDisplay Private

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

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Method Summary (collapse)

Methods inherited from Base

#initialize

Constructor Details

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

Instance Method Details

- (Object) activate!

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



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

def activate!
    can [:edit, :admin], :general_settings
    can [:display, :admin], Spree::TaxCategory
    can [:display, :admin], Spree::TaxRate
    can [:display, :admin], Spree::Zone
    can [:display, :admin], Spree::Country
    can [:display, :admin], Spree::State
    can [:display, :admin], Spree::PaymentMethod
    can [:display, :admin], Spree::Taxonomy
    can [:display, :admin], Spree::ShippingMethod
    can [:display, :admin], Spree::ShippingCategory
    can [:display, :admin], Spree::StockLocation
    can [:display, :admin], Spree::StockMovement
    can [:display, :admin], Spree::RefundReason
    can [:display, :admin], Spree::ReimbursementType
    can [:display, :admin], Spree::ReturnReason
end