Remove unnecessary #deleted? check

It should be included in te default product scope
This commit is contained in:
Matt-Yorkley
2019-09-27 01:52:29 +01:00
parent 2489a2f5f5
commit 5b27ed6b9f

View File

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