summaryrefslogtreecommitdiffstats
path: root/app/controllers/users_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/users_controller.rb')
-rw-r--r--app/controllers/users_controller.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb
index d22dd33cd..3bae5c057 100644
--- a/app/controllers/users_controller.rb
+++ b/app/controllers/users_controller.rb
@@ -154,7 +154,7 @@ class UsersController < ApplicationController
respond_to do |format|
format.html {
flash[:notice] = l(:notice_successful_update)
- redirect_to :back
+ redirect_to_referer_or edit_user_path(@user)
}
format.api { head :ok }
end
@@ -169,8 +169,6 @@ class UsersController < ApplicationController
format.api { render_validation_errors(@user) }
end
end
- rescue ::ActionController::RedirectBackError
- redirect_to :controller => 'users', :action => 'edit', :id => @user
end
def destroy