Registrant API: Permit country_code param

This commit is contained in:
Karl Erik Õunapuu 2021-02-26 11:30:17 +02:00
parent 34e71cc2c8
commit 40b7897e4b
No known key found for this signature in database
GPG key ID: C9DD647298A34764
2 changed files with 2 additions and 2 deletions

View file

@ -76,7 +76,7 @@ class RegistrantUser < User
return false unless user_data[:last_name]
user_data[:country_code] ||= 'EE'
%i[ident country_code].each { |f| user_data[f].upcase! if user_data[f].is_a?(String) }
user_data[:country_code].upcase! if user_data[:country_code].is_a?(String)
find_or_create_by_user_data(user_data)
end