gitlab-org--gitlab-foss/app/services/notes/delete_service.rb
2016-04-12 14:24:05 +02:00

8 lines
138 B
Ruby

module Notes
class DeleteService < BaseService
def execute(note)
note.destroy
note.reset_events_cache
end
end
end