mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Rename report_shipping_options to report_shipping_method_options for symmetry with report_payment_method_options
This commit is contained in:
@@ -12,7 +12,7 @@ module Spree
|
||||
orders.map { |o| o.payments.first.payment_method.andand.name }.uniq
|
||||
end
|
||||
|
||||
def report_shipping_options(orders)
|
||||
def report_shipping_method_options(orders)
|
||||
orders.map { |o| o.shipping_method.andand.name }.uniq
|
||||
end
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
%br
|
||||
= label_tag nil, "Shipping Method: "
|
||||
= select_tag(:shipping_method_name,
|
||||
options_for_select(report_shipping_options(@orders), params[:shipping_method_name]),
|
||||
options_for_select(report_shipping_method_options(@orders), params[:shipping_method_name]),
|
||||
include_blank: true)
|
||||
%br
|
||||
%br
|
||||
|
||||
Reference in New Issue
Block a user