summaryrefslogtreecommitdiff
path: root/app/services/issuable/destroy_service.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/services/issuable/destroy_service.rb')
-rw-r--r--app/services/issuable/destroy_service.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/app/services/issuable/destroy_service.rb b/app/services/issuable/destroy_service.rb
new file mode 100644
index 00000000000..0610b401213
--- /dev/null
+++ b/app/services/issuable/destroy_service.rb
@@ -0,0 +1,9 @@
+module Issuable
+ class DestroyService < IssuableBaseService
+ def execute(issuable)
+ if issuable.destroy
+ issuable.update_project_counter_caches
+ end
+ end
+ end
+end