Code cleanup.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9363 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user