Module: Spree::Admin::ChannelsHelper

Defined in:
app/helpers/spree/admin/channels_helper.rb

Instance Method Summary collapse

Instance Method Details

#channel_order_routing_strategy_optionsObject

Registered Spree::OrderRouting::Strategy::Base subclasses presented in the channel edit form, sourced from Spree.order_routing.strategies so the picker can never drift from what the model accepts. A blank value clears the channel-level override and falls back to Store#preferred_order_routing_strategy.



9
10
11
# File 'app/helpers/spree/admin/channels_helper.rb', line 9

def channel_order_routing_strategy_options
  Spree.order_routing.strategies.map { |strategy| [strategy.display_name, strategy.to_s] }
end