From 95bc8fa984f3d6c1fd9725f17ff9e167b31f630c Mon Sep 17 00:00:00 2001 From: luisramos0 Date: Wed, 18 Sep 2019 11:25:37 +0100 Subject: [PATCH] Remove logic from OrderCycleDistributedProducts related to obsolete master variants in OCs, this is a condition that will never happen now since we ensure products always have a standard variants A migration will be added as well to clean up any very old master variants available in order cycles --- app/services/order_cycle_distributed_products.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/app/services/order_cycle_distributed_products.rb b/app/services/order_cycle_distributed_products.rb index d2c9d3c4ca..77c20cde63 100644 --- a/app/services/order_cycle_distributed_products.rb +++ b/app/services/order_cycle_distributed_products.rb @@ -1,6 +1,5 @@ # Returns a (paginatable) AR object for the products or variants in stock for a given shop and OC. # The stock-checking includes on_demand and stock level overrides from variant_overrides. - class OrderCycleDistributedProducts def initialize(distributor, order_cycle) @distributor = distributor