mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Remove unnecessary #deleted? check
It should be included in te default product scope
This commit is contained in:
@@ -38,7 +38,7 @@ module OpenFoodNetwork
|
||||
order(taxon_order).
|
||||
each { |product| scoper.scope(product) }.
|
||||
select do |product|
|
||||
!product.deleted? && product.has_stock_for_distribution?(@order_cycle, @distributor)
|
||||
product.has_stock_for_distribution?(@order_cycle, @distributor)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user