Fix codeclimate issues

This commit is contained in:
Maciej Szlosarczyk 2018-07-24 12:18:38 +03:00
parent 06f5eb10d4
commit 90b2455032
No known key found for this signature in database
GPG key ID: 41D62D42D3B0D765
5 changed files with 13 additions and 14 deletions

View file

@ -54,8 +54,8 @@ class RegistrantUser < User
return false unless user_data[:first_name]
return false unless user_data[:last_name]
user_data.each { |k, v| v.upcase! if v.is_a?(String) }
user_data[:country_code] ||= "EE"
user_data.each_value { |v| v.upcase! if v.is_a?(String) }
user_data[:country_code] ||= 'EE'
find_or_create_by_user_data(user_data)
end