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"}"
This commit is contained in:
luisramos0
2019-12-26 18:23:04 +00:00
parent 55bb328d48
commit d0f33e7c8a

View File

@@ -48,7 +48,7 @@ class ApplicationController < ActionController::Base
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)