Permalink
Browse files

Return redirect is needed

  • Loading branch information...
1 parent 59d8d91 commit 398295b0bbafc7d678ae6159ed42eb604000f09f @practicingruby practicingruby committed Apr 10, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/controllers/application_controller.rb
@@ -12,7 +12,7 @@ def authenticate
def authenticate_user
unless current_user
- redirect_to current_authorization.authorization_link
+ return redirect_to(current_authorization.authorization_link)
end
redirect_to problems_sessions_path if current_user.account_disabled

0 comments on commit 398295b

Please sign in to comment.