To address http://github.com/couchrest/couchrest/issues/#issue/2, we simply remove the check on the value returned by database.save_doc. Errors from RestClient or CouchDB itself will be propagated as exceptions, which an upstream client should handle for themselves.
This commit is contained in:
parent
6811745a32
commit
2057e59777
1 changed files with 1 additions and 1 deletions
|
@ -217,7 +217,7 @@ module CouchRest
|
|||
raise ArgumentError, "a document requires a database to be saved to (The document or the #{self.class} default database were not set)" unless database
|
||||
set_unique_id if new_document? && self.respond_to?(:set_unique_id)
|
||||
result = database.save_doc(self, bulk)
|
||||
result["ok"] == true
|
||||
return true
|
||||
end
|
||||
|
||||
# Saves the document to the db using save. Raises an exception
|
||||
|
|
Loading…
Reference in a new issue