lib/customer_info_form.rb 🔗
@@ -42,6 +42,6 @@ class CustomerInfoForm
.gsub(/\D/, "")
.match(/\A1?(\d{10})\Z/)
&.[](1)
- &.then { find_customer_one("+1#{_1}") }
+ &.then { |tn| find_customer_one("+1#{tn}") }
end
end
Stephen Paul Weber created
lib/customer_info_form.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
@@ -42,6 +42,6 @@ class CustomerInfoForm
.gsub(/\D/, "")
.match(/\A1?(\d{10})\Z/)
&.[](1)
- &.then { find_customer_one("+1#{_1}") }
+ &.then { |tn| find_customer_one("+1#{tn}") }
end
end