debian-mirror-gitlab/app/services/notes/destroy_service.rb
2018-03-17 18:26:18 +05:30

9 lines
174 B
Ruby

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