Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2015-05-04 21:18:32 +0300
committerRobert Speicher <rspeicher@gmail.com>2015-05-10 00:31:40 +0300
commit125ee5262a65db71fc8ba2d7a51885039b5ccc1f (patch)
treeb6e7ee52acbd8843c64572f9c08e8a276c215f4a /app/controllers/sessions_controller.rb
parentc84f1240d4dd72b53361d3cc0bccf5c7d789c8ec (diff)
Don't use hard-coded sign_in path
Diffstat (limited to 'app/controllers/sessions_controller.rb')
-rw-r--r--app/controllers/sessions_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/sessions_controller.rb b/app/controllers/sessions_controller.rb
index e72b003f86f..8bd8fbb692f 100644
--- a/app/controllers/sessions_controller.rb
+++ b/app/controllers/sessions_controller.rb
@@ -16,7 +16,7 @@ class SessionsController < Devise::SessionsController
# Prevent a 'you are already signed in' message directly after signing:
# we should never redirect to '/users/sign_in' after signing in successfully.
- unless redirect_path == '/users/sign_in'
+ unless redirect_path == new_user_session_path
store_location_for(:redirect, redirect_path)
end