couchrest_model/spec/couchrest
Brian Candler c4b49baecf ClassProxy provides class-level methods on a dynamically chosen database.
Examples:

  db = CouchRest::Database.new(...)
  articles = Article.on(db)

  articles.all { ... }
  articles.by_title { ... }

  u = articles.get("someid")

  u = articles.new(:title => "I like plankton")
  u.save    # saved on the correct database
2009-03-27 13:42:49 +00:00
..
core Tidying up spec, remove unnecessary assignments to local variable 2009-03-27 11:44:09 +00:00
helpers slight change of API, CR::Document now uses <action>_doc instead of <action>, also added #create! and #recreate! to Document instances 2009-02-02 14:50:30 -08:00
more ClassProxy provides class-level methods on a dynamically chosen database. 2009-03-27 13:42:49 +00:00