Started the refactoring work on couchrest.
* A server can have multiple defined available databases set to be used by documents (think DM repos) * A server can have a default database so documents can easily share the same db connection * Let a document class have a default database to use * Give access to a document uri * extracted some of the document features to a mixin
This commit is contained in:
parent
a5f17cb13f
commit
6b2e5f84ad
7 changed files with 388 additions and 248 deletions
3
lib/couchrest/mixins.rb
Normal file
3
lib/couchrest/mixins.rb
Normal file
|
@ -0,0 +1,3 @@
|
|||
mixins_dir = File.join(File.dirname(__FILE__), 'mixins')
|
||||
|
||||
require File.join(mixins_dir, 'views')
|
Loading…
Add table
Add a link
Reference in a new issue