Class: Spree::PermissionSets::OrderDisplay Private

Inherits:
Base
  • Object
show all
Defined in:
lib/spree/permission_sets/order_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
# File 'lib/spree/permission_sets/order_display.rb', line 4

def activate!
  can [:display, :admin, :edit, :cart], Spree::Order
  can [:display, :admin], Spree::Payment
  can [:display, :admin], Spree::Shipment
  can [:display, :admin], Spree::Adjustment
  can [:display, :admin], Spree::LineItem
  can [:display, :admin], Spree::ReturnAuthorization
  can [:display, :admin], Spree::CustomerReturn
  can [:display, :admin], Spree::OrderCancellations
  can [:display, :admin], Spree::Reimbursement
  can [:display, :admin], Spree::ReturnItem
  can [:display, :admin], Spree::Refund
end