Permalink
Browse files

Merge branch 'master' of github.com:BlueHotDog/CodeNews

  • Loading branch information...
2 parents e57c5bf + daba0f1 commit 8911208e66123281feb3cf8c069f4149151ec492 @elentok elentok committed Apr 21, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/controllers/entries_controller.rb
View
2 app/controllers/entries_controller.rb
@@ -5,7 +5,7 @@ def index
auth_hash = request.env['omniauth.auth']
@user = nil
- if session
+ if session[:user_id]
@user = User.find(session[:user_id])
end

0 comments on commit 8911208

Please sign in to comment.