debian-mirror-gitlab/app/services/notes/delete_service.rb
2016-06-02 11:05:42 +05:30

8 lines
138 B
Ruby

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