From c2364b3528cec913ef177b96b5c11f46dcc2357b Mon Sep 17 00:00:00 2001 From: Luis Ramos Date: Tue, 23 Mar 2021 20:56:37 +0000 Subject: [PATCH] Relation#Uniq is deprecated, distinct is recommended instead --- app/models/spree/product.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/spree/product.rb b/app/models/spree/product.rb index ffed0f27d3..930c2654f6 100755 --- a/app/models/spree/product.rb +++ b/app/models/spree/product.rb @@ -173,7 +173,7 @@ module Spree scope :in_distributors, lambda { |distributors| with_order_cycles_outer. where('(o_exchanges.incoming = ? AND o_exchanges.receiver_id IN (?))', false, distributors). - uniq + distinct } # Products supplied by a given enterprise or distributed via that enterprise through an OC