Skip to content

Commit

Permalink
Ensure subsequent calls are matched to inital caller
Browse files Browse the repository at this point in the history
  • Loading branch information
Rio517 committed May 26, 2015
1 parent e90f98c commit 57e3905
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/person.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def self.create_or_update(person_params)
search_key, search_value = person_params.slice(:uuid, :email, :phone).first
case search_key
when :email then search_value.downcase!
when :phone then search_value = PhonyRails.normalize_number(search_value)
when :phone then search_value = PhonyRails.normalize_number(search_value, default_country_code: 'US')
end

if search_key
Expand Down

0 comments on commit 57e3905

Please sign in to comment.