debian-mirror-gitlab/app/services/notes/destroy_service.rb

10 lines
174 B
Ruby
Raw Normal View History

2016-06-02 11:05:42 +05:30
module Notes
2017-08-17 22:00:37 +05:30
class DestroyService < BaseService
2016-06-02 11:05:42 +05:30
def execute(note)
2018-03-17 18:26:18 +05:30
TodoService.new.destroy_target(note) do |note|
note.destroy
end
2016-06-02 11:05:42 +05:30
end
end
end