Skip to content

Commit

Permalink
Avoid code in devise that is not needed and simply return the root path
Browse files Browse the repository at this point in the history
This fixes a broken spec with error "No route matches {:controller=>"home"}"
  • Loading branch information
luisramos0 committed Dec 26, 2019
1 parent 6ee04af commit d100677
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d100677

Please sign in to comment.