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
parent e9f7456eab
commit fda5be213a
8 changed files with 185 additions and 108 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' => {