diff options
author | jessib <jessib@leap.se> | 2013-06-20 11:54:16 -0700 |
---|---|---|
committer | jessib <jessib@leap.se> | 2013-06-20 11:54:16 -0700 |
commit | ebdceb115f8a426bea61e4bf144463b67dbaf125 (patch) | |
tree | 0552f103e9a357b65af6b1baa2494cc413bb6d6e /users/app/controllers/users_controller.rb | |
parent | 3a89159d249c76ed7dbde3e51541ffc82b74ccdb (diff) |
For removing account, redirect to root path, and ask confirmation message:
https://leap.se/code/issues/2923
Diffstat (limited to 'users/app/controllers/users_controller.rb')
-rw-r--r-- | users/app/controllers/users_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |