mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Move scoper to method
This commit is contained in:
@@ -31,7 +31,6 @@ module OpenFoodNetwork
|
||||
|
||||
def load_products
|
||||
return unless @order_cycle
|
||||
scoper = ScopeProductToHub.new(@distributor)
|
||||
|
||||
OrderCycleDistributedProducts.new(@order_cycle, @distributor).
|
||||
relation.
|
||||
@@ -42,6 +41,10 @@ module OpenFoodNetwork
|
||||
end
|
||||
end
|
||||
|
||||
def scoper
|
||||
ScopeProductToHub.new(@distributor)
|
||||
end
|
||||
|
||||
def taxon_order
|
||||
if @distributor.preferred_shopfront_taxon_order.present?
|
||||
@distributor
|
||||
|
||||
Reference in New Issue
Block a user