Fix Robcop issues (blank spaces and indentation)

This commit is contained in:
Duende13
2017-07-20 14:00:44 +01:00
committed by Maikel Linke
parent 330e7d71af
commit 401052be68

View File

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