slight change of API, CR::Document now uses <action>_doc instead of <action>, also added #create! and #recreate! to Document instances

This commit is contained in:
Matt Aimonetti 2009-01-28 17:36:36 -08:00 committed by Chris Anderson
parent a4a2b202ae
commit 84e2bf94e4
8 changed files with 190 additions and 107 deletions

View file

@ -60,7 +60,7 @@ describe CouchRest::Pager do
@docs << ({:number => (i % 10)})
end
@db.bulk_save(@docs)
@db.save({
@db.save_doc({
'_id' => '_design/magic',
'views' => {
'number' => {