mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Fix Robcop issues (blank spaces and indentation)
This commit is contained in:
@@ -32,12 +32,10 @@ Spree::LineItem.class_eval do
|
||||
end
|
||||
}
|
||||
|
||||
scope :sorted_by_name_and_unit_value,
|
||||
# Find line items that are from order sorted by variant name and unit value
|
||||
joins(:variant=> :product).
|
||||
reorder('spree_products.name asc, spree_variants.unit_value asc').
|
||||
select('spree_line_items.*')
|
||||
|
||||
# Find line items that are from order sorted by variant name and unit value
|
||||
scope :sorted_by_name_and_unit_value, joins(:variant => :product).
|
||||
reorder('spree_products.name asc, spree_variants.unit_value asc').
|
||||
select('spree_line_items.*')
|
||||
|
||||
scope :supplied_by, lambda { |enterprise|
|
||||
joins(:product).
|
||||
|
||||
Reference in New Issue
Block a user