Sha256: 0a2684e4efc57329134b789e6cd688d897c169425217f5e44172be45f99bacbe

Contents?: true

Size: 337 Bytes

Versions: 120

Compression:

Stored size: 337 Bytes

Contents

# frozen_string_literal: true

module Spree
  module Stock
    module LocationSorter
      # This stock location sorter will give priority to the default stock
      # location.
      class DefaultFirst < Spree::Stock::LocationSorter::Base
        def sort
          stock_locations.order_default
        end
      end
    end
  end
end

Version data entries

120 entries across 120 versions & 2 rubygems

Version Path
solidus_core-4.4.2 app/models/spree/stock/location_sorter/default_first.rb
solidus_core-4.4.1 app/models/spree/stock/location_sorter/default_first.rb
solidus_core-4.4.0 app/models/spree/stock/location_sorter/default_first.rb
solidus_core-4.3.4 app/models/spree/stock/location_sorter/default_first.rb
solidus_core-4.2.4 app/models/spree/stock/location_sorter/default_first.rb
solidus_core-4.1.5 app/models/spree/stock/location_sorter/default_first.rb
solidus_core-4.3.3 app/models/spree/stock/location_sorter/default_first.rb
solidus_core-4.3.2 app/models/spree/stock/location_sorter/default_first.rb
solidus_core-4.1.4 app/models/spree/stock/location_sorter/default_first.rb
solidus_core-4.3.1 app/models/spree/stock/location_sorter/default_first.rb
solidus_core-4.3.0 app/models/spree/stock/location_sorter/default_first.rb
solidus_core-4.2.3 app/models/spree/stock/location_sorter/default_first.rb
solidus_core-4.1.3 app/models/spree/stock/location_sorter/default_first.rb
solidus_core-4.0.4 app/models/spree/stock/location_sorter/default_first.rb
solidus_core-3.4.6 app/models/spree/stock/location_sorter/default_first.rb
solidus_core-4.0.3 app/models/spree/stock/location_sorter/default_first.rb
solidus_core-4.1.2 app/models/spree/stock/location_sorter/default_first.rb
solidus_core-4.2.2 app/models/spree/stock/location_sorter/default_first.rb
solidus_core-3.4.5 app/models/spree/stock/location_sorter/default_first.rb
solidus_core-4.2.1 app/models/spree/stock/location_sorter/default_first.rb