Sha256: dcbea10df833cd8368068532b1fbf9fe3586a88673d44881368d11391b2cf5ea
Contents?: true
Size: 1.02 KB
Versions: 43
Compression:
Stored size: 1.02 KB
Contents
# frozen_string_literal: true module Spree module Core class StockConfiguration attr_writer :coordinator_class attr_writer :estimator_class attr_writer :location_filter_class attr_writer :location_sorter_class attr_writer :allocator_class def coordinator_class @coordinator_class ||= '::Spree::Stock::SimpleCoordinator' @coordinator_class.constantize end def estimator_class @estimator_class ||= '::Spree::Stock::Estimator' @estimator_class.constantize end def location_filter_class @location_filter_class ||= '::Spree::Stock::LocationFilter::Active' @location_filter_class.constantize end def location_sorter_class @location_sorter_class ||= '::Spree::Stock::LocationSorter::Unsorted' @location_sorter_class.constantize end def allocator_class @allocator_class ||= '::Spree::Stock::Allocator::OnHandFirst' @allocator_class.constantize end end end end
Version data entries
43 entries across 43 versions & 1 rubygems