mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-31 06:31:41 +00:00
Per review, remove instance variable @query
This commit is contained in:
committed by
zanetagebka
parent
2bac76ff40
commit
3dccc17d77
@@ -71,8 +71,8 @@ module OrderCycles
|
||||
distributor.preferred_shopfront_product_sorting_method
|
||||
end
|
||||
|
||||
def supplier_property_join
|
||||
@query = @query.joins("
|
||||
def supplier_property_join(query)
|
||||
query.joins("
|
||||
JOIN enterprises ON enterprises.id = first_variant.supplier_id
|
||||
LEFT OUTER JOIN producer_properties ON producer_properties.producer_id = enterprises.id
|
||||
")
|
||||
|
||||
Reference in New Issue
Block a user