Rename report_shipping_options to report_shipping_method_options for symmetry with report_payment_method_options

This commit is contained in:
Rohan Mitchell
2014-12-18 16:54:13 +11:00
parent 3b58d99abc
commit 343af1f1e0
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -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