diff --git a/lib/registration.rb b/lib/registration.rb index fc530500f82079b6bbf814f8b6d5e57c4a4a887b..6ae4ed46200b52f7a8e7fb49f13a05c81d622f34 100644 --- a/lib/registration.rb +++ b/lib/registration.rb @@ -220,7 +220,7 @@ class Registration def write COMMAND_MANAGER.write(@reply).then do |riq| - CreditCard.for(riq, @customer, @tel) + CreditCard.for(riq, @customer, @tel).write end end @@ -281,7 +281,7 @@ class Registration reply.note_type = :error reply.note_text = "#{reply_oob.desc}: #{reply_oob.url}" COMMAND_MANAGER.write(reply).then do |riq| - CreditCard.for(riq, @customer, @tel) + CreditCard.for(riq, @customer, @tel).write end end end