Skip to content
Snippets Groups Projects
Commit cf19cc5e authored by Israel Barreto Sant'Anna's avatar Israel Barreto Sant'Anna
Browse files

Fix omniauth_callback error

parent e87b2ec8
No related branches found
No related tags found
No related merge requests found
......@@ -24,7 +24,7 @@ require 'open-uri'
# break out provider attribute assignment for easy method extension
def assign_provider_attrs(user, auth_hash)
avatar = URI.parse(open(auth_hash['info']['image'])).open
avatar = URI.parse(auth_hash['info']['image']).open
user.assign_attributes({
nickname: auth_hash['info']['nickname'],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment