mirror of
https://github.com/internetee/registry.git
synced 2025-08-04 17:01:44 +02:00
Fix codeclimate issues
This commit is contained in:
parent
06f5eb10d4
commit
90b2455032
5 changed files with 13 additions and 14 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue