summaryrefslogtreecommitdiff
path: root/app/controllers/projects_controller.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-06-17 23:49:17 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-06-17 23:49:17 +0300
commit73f91da8b19be5b98b5c4e11cf27ceb50eb6c20b (patch)
treea0bb595ddacf7d1642ca789da944e733c8092cb7 /app/controllers/projects_controller.rb
parent6d352790c45cdb40265e7012eb991e3f69655924 (diff)
downloadgitlab-ce-73f91da8b19be5b98b5c4e11cf27ceb50eb6c20b.tar.gz
Fix project deletion and tests
Diffstat (limited to 'app/controllers/projects_controller.rb')
-rw-r--r--app/controllers/projects_controller.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb
index 9e14af62048..2dcc19bed07 100644
--- a/app/controllers/projects_controller.rb
+++ b/app/controllers/projects_controller.rb
@@ -98,8 +98,7 @@ class ProjectsController < ApplicationController
def destroy
return access_denied! unless can?(current_user, :remove_project, project)
- project.team.truncate
- project.destroy
+ ::Projects::DestroyService.new(@project, current_user, {}).execute
respond_to do |format|
format.html { redirect_to root_path }