Reverted r10234 and r10235 that broke redirect after login (#11691).

Tests in account_controller_test.rb should not have been changed.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10238 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2012-08-26 09:29:48 +00:00
parent a2e59cc956
commit 3cc6d5e815
4 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -174,7 +174,7 @@ class UsersController < ApplicationController
def destroy
@user.destroy
respond_to do |format|
format.html { redirect_back_or_default(users_url) }
format.html { redirect_to_referer_or(users_url) }
format.api { render_api_ok }
end
end