diff options
author | Artem Sidorenko <artem@posteo.de> | 2016-04-30 17:38:39 +0200 |
---|---|---|
committer | Artem Sidorenko <artem@posteo.de> | 2016-05-03 22:10:49 +0200 |
commit | d6c2d6bab9f00c288df3318424c4c1bbbca614dc (patch) | |
tree | 89b65006da8d48c00ac460899865238787dc4bb7 /app/controllers/application_controller.rb | |
parent | f0c4f727359a5848d12e2097bad6a6a3190943ef (diff) | |
download | gitlab-ce-d6c2d6bab9f00c288df3318424c4c1bbbca614dc.tar.gz |
Use sign out path only if not empty
Diffstat (limited to 'app/controllers/application_controller.rb')
-rw-r--r-- | app/controllers/application_controller.rb | 2 |
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 |