diff options
author | Azul <azul@riseup.net> | 2016-03-23 21:48:52 +0100 |
---|---|---|
committer | Azul <azul@riseup.net> | 2016-05-02 08:21:52 -0300 |
commit | 065859b90cc5ef403b8f47bd5394b343e556cc4d (patch) | |
tree | de62cd7a23b2db2a620911c6d861a7fda1d74a00 /engines/support/app/models | |
parent | abf600089a4bc4b5c7271e17b1fd95a95deb293f (diff) |
upgrade: remove references to RestClient
CouchRest > 1.2 does not use RestClient anymore. So we should not try to
catch its errors.
Diffstat (limited to 'engines/support/app/models')
-rw-r--r-- | engines/support/app/models/ticket.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/support/app/models/ticket.rb b/engines/support/app/models/ticket.rb index b1bdf8d..4615a10 100644 --- a/engines/support/app/models/ticket.rb +++ b/engines/support/app/models/ticket.rb @@ -50,7 +50,7 @@ class Ticket < CouchRest::Model::Base self.by_created_by.key(user.id).each do |ticket| ticket.destroy end - rescue RestClient::ResourceNotFound + rescue RESOURCE_NOT_FOUND # silently ignore if design docs are not yet created end |