Change Syntax from :variant => :product to variant: :product

This commit is contained in:
Duende13
2017-07-23 19:26:37 +01:00
committed by Maikel Linke
parent ba37db7ccc
commit f5ad950bc3

View File

@@ -33,7 +33,7 @@ Spree::LineItem.class_eval do
}
# Find line items that are from order sorted by variant name and unit value
scope :sorted_by_name_and_unit_value, joins(:variant => :product).
scope :sorted_by_name_and_unit_value, joins(variant: :product).
reorder('spree_products.name asc, spree_variants.unit_value asc').
select('spree_line_items.*')