diff --git a/lib/couchrest/mixins/views.rb b/lib/couchrest/mixins/views.rb index f6297cc..bdcab97 100644 --- a/lib/couchrest/mixins/views.rb +++ b/lib/couchrest/mixins/views.rb @@ -130,7 +130,7 @@ module CouchRest begin design_doc.view_on(db, view_name, opts, &block) # the design doc may not have been saved yet on this database - rescue HttpAbstraction::ResourceNotFound => e + rescue RestClient::ResourceNotFound => e if retryable save_design_doc(db) retryable = false