bulk save

This commit is contained in:
Chris Anderson 2008-03-19 16:38:07 -07:00
parent 43f51c5490
commit 7f14458694
2 changed files with 51 additions and 0 deletions

View file

@ -32,6 +32,10 @@ class CouchRest
end
end
def bulk_save docs
CouchRest.post "#{@root}/_bulk_docs", docs
end
def delete doc
slug = CGI.escape(doc['_id'])
CouchRest.delete "#{@root}/#{slug}?rev=#{doc['_rev']}"