Closed qd3v closed 8 years ago
This is also cause empty values for attrs hash while reading it in omniauth_resource.rb, since info_hash has strings as keys:
omniauth_resource.rb
def assign_provider_attrs info_hash = auth_hash['info'] attrs = %i(nickname name image email).each_with_object({}) do |k, hsh| hsh[k] = info_hash.fetch(k, '') end resource.assign_attributes(attrs) end
This is also cause empty values for attrs hash while reading it in
omniauth_resource.rb
, since info_hash has strings as keys: