From 456a45b1c3fb8f91d6520d5fdd922c9cf9f2f56b Mon Sep 17 00:00:00 2001 From: Stephen Paul Weber Date: Mon, 28 Mar 2022 16:07:01 -0500 Subject: [PATCH] Clearer name for lock bypass factory --- lib/low_balance.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/low_balance.rb b/lib/low_balance.rb index e5233db05f039ee206e568186b059661407cdb1a..41bbdd8639cc50fa894cde4811ea7882c1163b48 100644 --- a/lib/low_balance.rb +++ b/lib/low_balance.rb @@ -11,11 +11,11 @@ class LowBalance "jmp_customer_low_balance-#{customer.customer_id}", expiry: 60 * 60 * 24 * 7 ).with(-> { Locked.new }) do - for_auto_top_up_amount(customer) + for_no_lock(customer) end end - def self.for_auto_top_up_amount(customer) + def self.for_no_lock(customer) if customer.auto_top_up_amount.positive? AutoTopUp.new(customer) else