Skip to content
Snippets Groups Projects
Commit 546a49e3 authored by elijah's avatar elijah
Browse files

silently ignore 404 errors when trying to delete all user tickets: the tickets...

silently ignore 404 errors when trying to delete all user tickets: the tickets db might not yet be initialized.
parent 83989e85
Branches
No related tags found
No related merge requests found
......@@ -50,6 +50,8 @@ class Ticket < CouchRest::Model::Base
self.by_created_by.key(user.id).each do |ticket|
ticket.destroy
end
rescue RestClient::ResourceNotFound
# silently ignore if design docs are not yet created
end
def is_creator_validated?
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment