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