From d1006771d99b81edadaf73ce42906aba5db5ea61 Mon Sep 17 00:00:00 2001 From: luisramos0 Date: Thu, 26 Dec 2019 18:23:04 +0000 Subject: [PATCH] Avoid code in devise that is not needed and simply return the root path This fixes a broken spec with error "No route matches {:controller=>"home"}" --- app/controllers/application_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index fea9fd79b140..1c829d216258 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -48,7 +48,7 @@ def disable_embedded_styles def after_sign_in_path_for(resource_or_scope) return session[:shopfront_redirect] if session[:shopfront_redirect] - stored_location_for(resource_or_scope) || signed_in_root_path(resource_or_scope) + stored_location_for(resource_or_scope) || main_app.root_path end def after_sign_out_path_for(_resource_or_scope)