From 4cd8df079f1574cb20a2975f819a4056cefe0569 Mon Sep 17 00:00:00 2001 From: Martin Lensment Date: Tue, 19 May 2015 11:07:21 +0300 Subject: [PATCH] Return user from id card parser method --- app/models/registrant_user.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/models/registrant_user.rb b/app/models/registrant_user.rb index 1aa9ff711..f5a59a0b6 100644 --- a/app/models/registrant_user.rb +++ b/app/models/registrant_user.rb @@ -21,6 +21,8 @@ class RegistrantUser < User u = where(registrant_ident: "#{country}-#{identity_code}").first_or_create u.username = "#{first_name} #{last_name}" u.save + + u end end end