summaryrefslogtreecommitdiff
path: root/engines/support/app
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2014-12-10 15:05:34 -0800
committerelijah <elijah@riseup.net>2014-12-10 15:05:34 -0800
commitb59360a003af595f1552f2ce753d4d80e5cf0028 (patch)
tree6ae54ad2f0bc10527cda55ce3652d24a9bf732c3 /engines/support/app
parentc3305f1c29a1a37913bfb05cd11d547e9d7f16a0 (diff)
silently ignore 404 errors when trying to delete all user tickets: the tickets db might not yet be initialized.
Diffstat (limited to 'engines/support/app')
-rw-r--r--engines/support/app/models/ticket.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/support/app/models/ticket.rb b/engines/support/app/models/ticket.rb
index 161507c..554fbd6 100644
--- a/engines/support/app/models/ticket.rb
+++ b/engines/support/app/models/ticket.rb
@@ -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?