diff options
author | azul <azul@riseup.net> | 2013-06-25 07:17:37 -0700 |
---|---|---|
committer | azul <azul@riseup.net> | 2013-06-25 07:17:37 -0700 |
commit | 4f6e81a2d87bc22089536e3af48f45e8ecee68c8 (patch) | |
tree | d1ea6b275188635800ba17217a78b78545960151 /users/app/controllers/users_controller.rb | |
parent | ba036558e47da53e86ccb8cb7fb4ee1db725b804 (diff) | |
parent | ebdceb115f8a426bea61e4bf144463b67dbaf125 (diff) |
Merge pull request #48 from leapcode/feature/remove-account
For removing account, redirect to root path, and ask confirmation messag...
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 |