app/helpers/spree/admin/adjustments_helper.rb in solidus_backend-1.2.3 vs app/helpers/spree/admin/adjustments_helper.rb in solidus_backend-1.3.0.beta1

- old
+ new

@@ -6,18 +6,17 @@ content_tag(:span, '', class: "fa fa-#{icon}") end def display_adjustable(adjustable) case adjustable - when Spree::LineItem + when Spree::LineItem display_line_item(adjustable) - when Spree::Shipment + when Spree::Shipment display_shipment(adjustable) - when Spree::Order + when Spree::Order display_order(adjustable) end - end private def display_line_item(line_item) @@ -35,10 +34,10 @@ shipment.display_cost ] safe_join(parts, "<br />".html_safe) end - def display_order(order) + def display_order(_order) Spree.t(:order) end end end end