ruby on rails - GitHub Omniauth retrieve user location -


i'm trying github users' location using omniauth. works fine except location (i nil if mine set "paris"). the documentation says should "info.location" retrieve it. here code in rails app:

class user < applicationrecord   # include default devise modules. others available are:   # :confirmable, :lockable, :timeoutable , :omniauthable   devise :database_authenticatable, :registerable,          :recoverable, :rememberable, :trackable, :validatable, :omniauthable           def self.from_omniauth(auth)              where(provider: auth.provider, uid: auth.uid).first_or_create |user|                user.provider = auth.provider                user.uid = auth.uid                user.email = auth.info.email                user.password = devise.friendly_token[0,20]                user.nickname = auth.info.nickname                user.name = auth.info.name                user.location = auth.info.location              end            end end 

is possible retrieve github users' location?


Comments

Popular posts from this blog

php - Permission denied. Laravel linux server -

google bigquery - Delta between query execution time and Java query call to finish -

python - Pandas two dataframes multiplication? -