Fix issue #1.
This commit is contained in:
parent
37c6cb30c2
commit
8db522a116
2 changed files with 21 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue