From 1c4bb4094344f249e2c4d8a0bd9a48b4aab35327 Mon Sep 17 00:00:00 2001 From: Stephen Paul Weber Date: Wed, 7 Sep 2022 13:21:42 -0500 Subject: [PATCH] Fix for ruby3 --- lib/customer.rb | 2 +- lib/registration.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/customer.rb b/lib/customer.rb index 547c702..0d45b1c 100644 --- a/lib/customer.rb +++ b/lib/customer.rb @@ -41,7 +41,7 @@ class Customer klass.new( customer_id, jid, - plan: CustomerPlan.extract(customer_id, kwargs), + plan: CustomerPlan.extract(customer_id, **kwargs), **kwargs.slice(:balance, :sgx, :tndetails, *keys) ) end diff --git a/lib/registration.rb b/lib/registration.rb index 01e8820..a592ba0 100644 --- a/lib/registration.rb +++ b/lib/registration.rb @@ -217,7 +217,7 @@ class Registration end class CreditCard - Payment.kinds[:credit_card] = ->(*args) { self.for(*args) } + Payment.kinds[:credit_card] = ->(*args, **kw) { self.for(*args, **kw) } def self.for(customer, tel, finish: Finish, **) customer.payment_methods.then do |payment_methods| -- 2.45.2