Sha256: 4894df08764092aec43362c654c72c175f859cb931655e9fcf271f2fb2ec5f19
Contents?: true
Size: 585 Bytes
Versions: 2
Compression:
Stored size: 585 Bytes
Contents
module SpreeMultiStore module Api module ShipmentsControllerDecorator def self.included(base) base.alias_method_chain :mine, :store_scope end def mine_with_store_scope mine_without_store_scope @shipments = @shipments.where(spree_orders: { store_id: current_store.id }) if @shipments end end end end if SpreeMultiDomain::Engine.api_available? Spree::Api::ShipmentsController.include(SpreeMultiStore::Api::ShipmentsControllerDecorator) Spree::Api::ShipmentsController.include(SpreeMultiDomain::CreateLineItemSupport) end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
solidus_multi_domain-1.5.0 | app/controllers/spree/api/shipments_controller_decorator.rb |
solidus_multi_domain-1.4.3 | app/controllers/spree/api/shipments_controller_decorator.rb |