summaryrefslogtreecommitdiff
path: root/app/controllers/concerns/issuable_actions.rb
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2017-11-27 16:16:20 +0000
committerRémy Coutable <remy@rymai.me>2017-11-27 16:16:20 +0000
commita7f6ab952acc58e7ef9a33fba3fbaaa0918572fe (patch)
tree2275a931efde5ac9fccc60630f4475a137f08fd7 /app/controllers/concerns/issuable_actions.rb
parent24fadd7c3d0a8f643e9df1c7ae3c1c7e88e8592e (diff)
parent7fb1bb01bd669cc46514ed17b1b8822a1d962970 (diff)
downloadgitlab-ce-a7f6ab952acc58e7ef9a33fba3fbaaa0918572fe.tar.gz
Merge branch '39601-create-issuable-destroy-service' into 'master'
Create issue and merge request destroy services Closes #39601 See merge request gitlab-org/gitlab-ce!15604
Diffstat (limited to 'app/controllers/concerns/issuable_actions.rb')
-rw-r--r--app/controllers/concerns/issuable_actions.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/concerns/issuable_actions.rb b/app/controllers/concerns/issuable_actions.rb
index 072dffaff7a..f6d9f88032f 100644
--- a/app/controllers/concerns/issuable_actions.rb
+++ b/app/controllers/concerns/issuable_actions.rb
@@ -54,7 +54,7 @@ module IssuableActions
end
def destroy
- issuable.destroy
+ Issuable::DestroyService.new(project, current_user).execute(issuable)
TodoService.new.destroy_issuable(issuable, current_user)
name = issuable.human_class_name