From ebdceb115f8a426bea61e4bf144463b67dbaf125 Mon Sep 17 00:00:00 2001 From: jessib Date: Thu, 20 Jun 2013 11:54:16 -0700 Subject: For removing account, redirect to root path, and ask confirmation message: https://leap.se/code/issues/2923 --- users/app/controllers/users_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'users/app/controllers') diff --git a/users/app/controllers/users_controller.rb b/users/app/controllers/users_controller.rb index dff1ed5..38a69e3 100644 --- a/users/app/controllers/users_controller.rb +++ b/users/app/controllers/users_controller.rb @@ -43,7 +43,7 @@ class UsersController < ApplicationController def destroy @user.destroy - redirect_to admin? ? users_path : login_path + redirect_to admin? ? users_path : root_path end protected -- cgit v1.2.3