gitlab-org--gitlab-foss/app/services/notes/destroy_service.rb
2018-07-17 15:19:40 -07:00

11 lines
205 B
Ruby

# frozen_string_literal: true
module Notes
class DestroyService < BaseService
def execute(note)
TodoService.new.destroy_target(note) do |note|
note.destroy
end
end
end
end