diff --git a/Changelog.md b/Changelog.md index 0738c59fe..fb8ee019e 100644 --- a/Changelog.md +++ b/Changelog.md @@ -63,6 +63,7 @@ With the port to Bootstrap 3, app/views/terms/default.haml has a new structure. * Drop broken correlations from the admin pages [#6223](https://github.com/diaspora/diaspora/pull/6223) * Extract PostService from PostsController [#6208](https://github.com/diaspora/diaspora/pull/6208) * Drop outdated/unused mbp-respond.min.js and mbp-modernizr-custom.js [#6257](https://github.com/diaspora/diaspora/pull/6257) +* Refactor ApplicationController#after\_sign\_out\_path\_for [#6258](https://github.com/diaspora/diaspora/pull/6258) ## Bug fixes * Fix indentation and a link title on the default home page [#6212](https://github.com/diaspora/diaspora/pull/6212) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 13bd0d314..57aa4de7d 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -40,11 +40,7 @@ class ApplicationController < ActionController::Base # Overwriting the sign_out redirect path method def after_sign_out_path_for(resource_or_scope) - if is_mobile_device? - root_path - else - new_user_session_path - end + is_mobile_device? ? root_path : new_user_session_path end def all_aspects