Permalink
Browse files

Missed a performance case/source of recursion complaints in the log.

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 01e8b32412eaceefe87bfdbbf51448f1b6bdff82
Showing with 2 additions and 0 deletions.
  1. +2 −0 app/controllers/gitolite_public_keys_controller.rb
@@ -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

0 comments on commit 01e8b32

Please sign in to comment.