Fix issue #1.

This commit is contained in:
Tapajós 2009-09-03 00:27:04 -03:00
parent 37c6cb30c2
commit 8db522a116
2 changed files with 21 additions and 0 deletions

View file

@ -193,6 +193,7 @@ module CouchRest
# if the document is not saved properly.
def save!
raise "#{self.inspect} failed to save" unless self.save
true
end
# Deletes the document from the database. Runs the :destroy callbacks.