Module: Spree::Admin::ChannelsHelper
- Defined in:
- app/helpers/spree/admin/channels_helper.rb
Instance Method Summary collapse
-
#channel_order_routing_strategy_options ⇒ Object
Registered
Spree::OrderRouting::Strategy::Basesubclasses presented in the channel edit form, sourced fromSpree.order_routing.strategiesso the picker can never drift from what the model accepts.
Instance Method Details
#channel_order_routing_strategy_options ⇒ Object
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 Spree.order_routing.strategies.map { |strategy| [strategy.display_name, strategy.to_s] } end |