lib/couchrest/model/design.rb in couchrest_model-2.0.4 vs lib/couchrest/model/design.rb in couchrest_model-2.1.0.beta1
- old
+ new
@@ -118,11 +118,9 @@
protected
def load_from_database(db = database, id = nil)
id ||= self['_id']
db.get(id)
- rescue RestClient::ResourceNotFound
- nil
end
# Calculate and update the checksum of the Design document.
# Used for ensuring the latest version has been sent to the database.
#