Commit 132177c2b7cf3a241ff76d0154b31c7bea6059fc

Authored by Dmitriy Zaporozhets
2 parents 6db121cb 94b8c09c

Merge branch 'master' of github.com:gitlabhq/gitlabhq

Showing 1 changed file with 4 additions and 0 deletions   Show diff stats
app/controllers/projects_controller.rb
... ... @@ -93,7 +93,11 @@ class ProjectsController < ApplicationController
93 93 end
94 94  
95 95 def destroy
  96 + # Disable the UsersProject update_repository call, otherwise it will be
  97 + # called once for every person removed from the project
  98 + UsersProject.skip_callback(:destroy, :after, :update_repository)
96 99 project.destroy
  100 + UsersProject.set_callback(:destroy, :after, :update_repository)
97 101  
98 102 respond_to do |format|
99 103 format.html { redirect_to projects_url }
... ...