diff options
author | elijah <elijah@riseup.net> | 2014-12-10 15:05:34 -0800 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2014-12-10 15:06:21 -0800 |
commit | 546a49e3d59af2565b5b80c9ea5105d4adf0f963 (patch) | |
tree | 4b879aeb5ed7660d33999c5a0ba5db015a6cfa8e /engines | |
parent | 83989e85231b4b51bfa68c40b5978ddd57a29eee (diff) |
silently ignore 404 errors when trying to delete all user tickets: the tickets db might not yet be initialized.
Diffstat (limited to 'engines')
-rw-r--r-- | engines/support/app/models/ticket.rb | 2 |
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? |