Class: Spree::Stock::LocationSorter::DefaultFirst
- Defined in:
- app/models/spree/stock/location_sorter/default_first.rb
Overview
This stock location sorter will give priority to the default stock location.
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Spree::Stock::LocationSorter::Base
Instance Method Details
#sort ⇒ Object
9 10 11 |
# File 'app/models/spree/stock/location_sorter/default_first.rb', line 9 def sort stock_locations.order_default end |