mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-05 22:26:07 +00:00
Change Syntax from :variant => :product to variant: :product
This commit is contained in:
@@ -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.*')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user