diff options
author | Baldinof <baldinof@gmail.com> | 2016-03-22 15:34:35 +0100 |
---|---|---|
committer | Baldinof <baldinof@gmail.com> | 2016-03-22 15:34:35 +0100 |
commit | fa4126acffdfe13741e05a60ad5ed7fd407b4f16 (patch) | |
tree | b7f7e6e49d851c947426684def13c593896f0c70 /app/controllers/projects_controller.rb | |
parent | 436caf4e8b7beb8cb61bb1045273488477841880 (diff) | |
download | gitlab-ce-fa4126acffdfe13741e05a60ad5ed7fd407b4f16.tar.gz |
Move unlink fork logic to a service
Diffstat (limited to 'app/controllers/projects_controller.rb')
-rw-r--r-- | app/controllers/projects_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb index 94789702d65..87657e4e3d2 100644 --- a/app/controllers/projects_controller.rb +++ b/app/controllers/projects_controller.rb @@ -71,7 +71,7 @@ class ProjectsController < ApplicationController def remove_fork return access_denied! unless can?(current_user, :remove_fork_project, @project) - if @project.unlink_fork(current_user) + if ::Projects::UnlinkForkService.new(@project, current_user).execute flash[:notice] = 'The fork relationship has been removed.' end end |