Removed model create/update callbacks and integrated with new bulk save infrastructure.
This commit is contained in:
parent
d8d5645ebd
commit
84382d8af4
5 changed files with 33 additions and 37 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue