Removed model create/update callbacks and integrated with new bulk save infrastructure.

This commit is contained in:
Nolan Darilek 2008-12-15 10:27:53 -06:00
parent d8d5645ebd
commit 84382d8af4
5 changed files with 33 additions and 37 deletions

View file

@ -119,7 +119,7 @@ module CouchRest
if bulk
@bulk_save_cache << doc
return bulk_save if @bulk_save_cache.length >= @bulk_save_cache_limit
return doc
return {"ok" => true} # Compatibility with Document#save
elsif !bulk && @bulk_save_cache.length > 0
bulk_save
end