Permalink
Browse files

don't try refresh social connections on offline instalogin

  • Loading branch information...
1 parent 440306e commit a97eee5aa10424ddb7c48e1d828881f68a9aa3f9 @mislav committed Nov 5, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/models/user/social.rb
@@ -153,7 +153,7 @@ def login_from_provider(auth, current_user = nil)
user['facebook_token'] = [auth.credentials.token, auth.credentials.secret] if auth.credentials
end
- user.refresh_social_connections
+ user.refresh_social_connections unless Movies.offline?
user.save
return user
end

0 comments on commit a97eee5

Please sign in to comment.