gitlab-org--gitlab-foss/app/services/issuable/destroy_service.rb

10 lines
188 B
Ruby
Raw Normal View History

module Issuable
class DestroyService < IssuableBaseService
def execute(issuable)
if issuable.destroy
issuable.update_project_counter_caches
end
end
end
end