Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…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.
  • Loading branch information
Luke Burton committed Aug 20, 2009
1 parent 6811745 commit bb37f55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/couchrest/more/extended_document.rb
Expand Up @@ -217,7 +217,7 @@ def save_without_callbacks(bulk = false)
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
Expand Down

1 comment on commit bb37f55

@tapajos
Copy link

@tapajos tapajos commented on bb37f55 Jan 4, 2010

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I checked this commit but I need to write some tests before merge it. I will do it as soon as possible(I'm very busy this week).
Can you help me and write this tests?

Please sign in to comment.