summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArtem Sidorenko <artem@posteo.de>2016-04-30 17:38:39 +0200
committerArtem Sidorenko <artem@posteo.de>2016-05-03 22:10:49 +0200
commitd6c2d6bab9f00c288df3318424c4c1bbbca614dc (patch)
tree89b65006da8d48c00ac460899865238787dc4bb7
parentf0c4f727359a5848d12e2097bad6a6a3190943ef (diff)
downloadgitlab-ce-d6c2d6bab9f00c288df3318424c4c1bbbca614dc.tar.gz
Use sign out path only if not empty
-rw-r--r--app/controllers/application_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb
index 1c53b0b21a3..17b3f49aed1 100644
--- a/app/controllers/application_controller.rb
+++ b/app/controllers/application_controller.rb
@@ -117,7 +117,7 @@ class ApplicationController < ActionController::Base
end
def after_sign_out_path_for(resource)
- current_application_settings.after_sign_out_path || new_user_session_path
+ current_application_settings.after_sign_out_path.presence || new_user_session_path
end
def abilities