Class: Spree::PermissionSets::RestrictedStockTransferDisplay Private
- Defined in:
- lib/spree/permission_sets/restricted_stock_transfer_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
- #activate! ⇒ Object private
Methods inherited from Base
Constructor Details
This class inherits a constructor from Spree::PermissionSets::Base
Instance Method Details
#activate! ⇒ Object
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 |
# File 'lib/spree/permission_sets/restricted_stock_transfer_display.rb', line 4 def activate! can [:display, :admin], Spree::StockTransfer, source_location_id: location_ids can [:display, :admin], Spree::StockTransfer, destination_location_id: location_ids can :display, Spree::StockLocation, id: location_ids end |