Skip to content

Commit

Permalink
Missed a performance case/source of recursion complaints in the log.
Browse files Browse the repository at this point in the history
This is not a major issue (or even correctness issue), but will cause
complaints of recursion in the log.
  • Loading branch information
kubitron committed Nov 27, 2011
1 parent db30d7e commit 01e8b32
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/controllers/gitolite_public_keys_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,14 @@ def delete
end

def update
GitHostingObserver.set_update_active(false)
if @gitolite_public_key.update_attributes(params[:public_key])
flash[:notice] = l(:notice_public_key_updated)
redirect_to url_for(:controller => 'my', :action => 'account')
else
render :action => 'edit'
end
GitHostingObserver.set_update_active(true)
end

def create
Expand Down

0 comments on commit 01e8b32

Please sign in to comment.