From 9fbdb311b0c864701cb3bce39e6e13cd292d853c Mon Sep 17 00:00:00 2001 From: Mohamed ABDELLANI Date: Sat, 10 Dec 2022 11:51:35 +0100 Subject: [PATCH] Update app/services/order_available_payment_methods.rb Co-authored-by: jibees --- app/services/order_available_payment_methods.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/services/order_available_payment_methods.rb b/app/services/order_available_payment_methods.rb index e7f9d1a3ff..c3f71cc1da 100644 --- a/app/services/order_available_payment_methods.rb +++ b/app/services/order_available_payment_methods.rb @@ -36,7 +36,8 @@ class OrderAvailablePaymentMethods end def available_distributor_payment_methods_ids - order_cycle.distributor_payment_methods.where(distributor_id: distributor.id) + order_cycle.distributor_payment_methods + .where(distributor_id: distributor.id) .select(:payment_method_id) end end