From c8b01cb62c3d57605778c32d9030acd2d1f5d88d Mon Sep 17 00:00:00 2001 From: Mikica Ivosevic <mikica.ivosevic@gmail.com> Date: Tue, 28 Jul 2015 17:15:38 +0200 Subject: [PATCH] application_controller.rb refactor method after_sign_out_path_for closes #6258 --- Changelog.md | 1 + app/controllers/application_controller.rb | 6 +----- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/Changelog.md b/Changelog.md index a8e739834f..2ac86920b5 100644 --- a/Changelog.md +++ b/Changelog.md @@ -4,6 +4,7 @@ * 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 faa0b49baa..b8e7b67ff2 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -39,11 +39,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 -- GitLab