From 96c0d09c07bcaf34739fdc90c483d29019f93269 Mon Sep 17 00:00:00 2001 From: Alex Sherman Date: Wed, 30 Sep 2020 15:20:31 +0500 Subject: [PATCH] Remove country code from Tara user search --- app/models/user.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/user.rb b/app/models/user.rb index 8d043d1ab..21d5f6b46 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -17,8 +17,8 @@ class User < ApplicationRecord def self.from_omniauth(omniauth_hash) uid = omniauth_hash['uid'] identity_code = uid.slice(2..-1) - country_code = uid.slice(0..1) + # country_code = uid.slice(0..1) - User.find_by(identity_code: identity_code, country_code: country_code) + User.find_by(identity_code: identity_code) end end