Skip to content

Commit

Permalink
don't try refresh social connections on offline instalogin
Browse files Browse the repository at this point in the history
  • Loading branch information
mislav committed Nov 5, 2012
1 parent 440306e commit a97eee5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/user/social.rb
Expand Up @@ -153,7 +153,7 @@ def login_from_provider(auth, current_user = nil)
user['facebook_token'] = [auth.credentials.token, auth.credentials.secret] if auth.credentials user['facebook_token'] = [auth.credentials.token, auth.credentials.secret] if auth.credentials
end end


user.refresh_social_connections user.refresh_social_connections unless Movies.offline?
user.save user.save
return user return user
end end
Expand Down

0 comments on commit a97eee5

Please sign in to comment.