summaryrefslogtreecommitdiff
path: root/users/app
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2013-07-04 04:26:31 -0700
committerelijah <elijah@riseup.net>2013-07-04 04:26:31 -0700
commit0d95d40616a6b23d848d1fe69d68a14c69280674 (patch)
tree805d8072711fdf7b8c54e047f913622d3a5ba8fa /users/app
parent58dc84bb75bf38319b52c821f39fd8017b46ea77 (diff)
redirect to root after user destroy
Diffstat (limited to 'users/app')
-rw-r--r--users/app/controllers/users_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/users/app/controllers/users_controller.rb b/users/app/controllers/users_controller.rb
index 5d45db5..4ce970b 100644
--- a/users/app/controllers/users_controller.rb
+++ b/users/app/controllers/users_controller.rb
@@ -36,7 +36,7 @@ class UsersController < UsersBaseController
def destroy
@user.destroy
- redirect_to admin? ? users_path : login_path
+ redirect_to admin? ? users_url : root_url
end
end