Sha256: 074a041fb65cbb9d2f05c22163d06b773ac5a7300204b138ec462351748344ca

Contents?: true

Size: 532 Bytes

Versions: 12

Compression:

Stored size: 532 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

Spree::Api::ShipmentsController.include SpreeMultiStore::Api::ShipmentsControllerDecorator
Spree::Api::ShipmentsController.include SpreeMultiDomain::CreateLineItemSupport

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
solidus_multi_domain-1.4.2 app/controllers/spree/api/shipments_controller_decorator.rb
solidus_multi_domain-1.4.1 app/controllers/spree/api/shipments_controller_decorator.rb
solidus_multi_domain-1.4.0 app/controllers/spree/api/shipments_controller_decorator.rb
solidus_multi_domain-1.3.0 app/controllers/spree/api/shipments_controller_decorator.rb
solidus_multi_domain-1.2.0 app/controllers/spree/api/shipments_controller_decorator.rb
solidus_multi_domain-1.1.3 app/controllers/spree/api/shipments_controller_decorator.rb
solidus_multi_domain-1.1.2 app/controllers/spree/api/shipments_controller_decorator.rb
solidus_multi_domain-1.1.1 app/controllers/spree/api/shipments_controller_decorator.rb
solidus_multi_domain-1.0.3 app/controllers/spree/api/shipments_controller_decorator.rb
solidus_multi_domain-1.1.0 app/controllers/spree/api/shipments_controller_decorator.rb
solidus_multi_domain-1.0.1 app/controllers/spree/api/shipments_controller_decorator.rb
solidus_multi_domain-1.0.0 app/controllers/spree/api/shipments_controller_decorator.rb