Commit graph

8 commits

Author SHA1 Message Date
Brian Candler aabf097e88 Tidying up spec, remove unnecessary assignments to local variable 2009-03-27 11:44:09 +00:00
Brian Candler ec7848b783 Multiple database support for ExtendedDocument.
New optional parameters are available to select the database:

Mixins::DocumentQueries
  * get <id>, <db>
  * all :database => <db>
  * first :database => <db>

Mixins::Views
  * view <name>, :database => <db>
  * all_design_doc_versions <db>
  * cleanup_design_docs! <db>

Mixins::DesignDoc
  * refresh_design_doc now only updates the design_doc _id and removes _rev
  * call save_design_doc to save and update the design_doc
  * call save_design_doc_on <db> to save the design doc on a given
    database without modifying the model's design_doc object

Design (core/design.rb)
  * new method view_on <db>, ...

Bug fixes:
  * design_doc_slug in mixins/design_doc.rb was using an empty document
    to calculate the slug each time
  * method_missing in core/extended_document.rb now passes a block through
2009-03-27 11:27:37 +00:00
Matt Aimonetti fda5be213a slight change of API, CR::Document now uses <action>_doc instead of <action>, also added #create! and #recreate! to Document instances 2009-01-28 18:16:55 -08:00
Chris Anderson d1f8970c84 fixed ddoc names on get 2009-01-12 19:50:00 -08:00
Chris Anderson 9a157ab63b made rake spec pass again 2008-11-22 16:09:34 -08:00
Chris Anderson 78534f8ec9 I seem to have all the CR::Model specs passing 2008-11-22 14:15:07 -08:00
Chris Anderson 19a70ffd7d got view queries happening correctly 2008-11-21 16:21:20 -08:00
Chris Anderson 0769c2690f on the road toward design docs 2008-11-08 16:28:58 -08:00