Issue 35 in activecouch: [PATCH] implement a default connection used by all subclasses of ActiveCouch::Base if no site specified

0 views
Skip to first unread message

codesite...@google.com

unread,
Mar 29, 2008, 1:03:20 AM3/29/08
to activ...@googlegroups.com
Issue 35: [PATCH] implement a default connection used by all subclasses
of ActiveCouch::Base if no site specified
http://code.google.com/p/activecouch/issues/detail?id=35

New issue report by dieter.komendera:
This patch extends ActiveCouch::Base with a default_connection= method.

If a default connection is set, it will be used by subclasses of Base
if they have no site specified.
This is particularly useful in a Rails environment. During
initialization of the framework a config file
can be parsed which contains information about the database (like
database.yml). This connection
can be used by all models unless they have a site set explicitly. This
also makes deploying easier,
because a different connection for development and production can be specified.


Attachments:
0002-implement-a-default-connection-used-by-all-subclasse.patch 2.9 KB


Issue attributes:
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

Reply all
Reply to author
Forward
0 new messages