diff --git a/lib/couchrest/more/extended_document.rb b/lib/couchrest/more/extended_document.rb index 7fd067a0..d52ad9f6 100644 --- a/lib/couchrest/more/extended_document.rb +++ b/lib/couchrest/more/extended_document.rb @@ -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