removed use_dirty config option (runs faster)

This commit is contained in:
Andrew Williams 2011-03-06 13:11:37 +10:30
parent 3ad4e1e979
commit 634813858e
9 changed files with 11 additions and 79 deletions

View file

@ -30,7 +30,7 @@ module CouchRest
def update(options = {})
raise "Calling #{self.class.name}#update on document that has not been created!" if self.new?
return false unless perform_validations(options)
return true if use_dirty? && !self.changed?
return true if !self.changed?
_run_update_callbacks do
_run_save_callbacks do
result = database.save_doc(self)