couchrest_model/lib/couchrest
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
..
commands change it to !include 2009-01-02 01:59:33 -08:00
core Multiple database support for ExtendedDocument. 2009-03-27 11:27:37 +00:00
helper updater is simpler now that I learned about open_revs=all 2009-03-14 19:00:26 -07:00
mixins Multiple database support for ExtendedDocument. 2009-03-27 11:27:37 +00:00
more Multiple database support for ExtendedDocument. 2009-03-27 11:27:37 +00:00
support Namespace Extlib versions of class_inheritable_accessor methods with extlib_prefix, as done in Wycats' Rails fork, so that their inclusion won't overwrite existing ActiveSupport implementations, if present. Check for existence of Class extensions on a per-method basis. 2009-03-19 16:59:22 -07:00
validation Extract humanize method from Extlib::Inflection to CouchRest.humanize, so that Extlib::Inflection dependency can be removed 2009-03-19 16:37:45 -07:00
mixins.rb got rid of extlib hooking system in favor of the new Rails3 callback system. As well as fixed timestamps! in ExtendedDoc 2009-02-03 17:33:31 -08:00
monkeypatches.rb Time#to_json monkeypatch: use Time#getutc instead of #utc, so that self is not modified 2009-03-19 16:38:20 -07:00