[Rails] Custom Database adapters
Jean-François
jf.web3 at gmail.com
Tue Apr 18 22:43:51 GMT 2006
Hello Aaron,
> Hi. I've created a custom database adapter, but I'd like to modify the
> RAILS_CONNECTION_ADAPTERS variable, and add the adapter
>in my rails app
> rather than modifying the activerecord directory.
Have you tried to define RAILS_CONNECTION_ADAPTERS
in config/environment.rb ?
sth like :
...
RAILS_CONNECTION_ADAPTERS = %w(mysql my_custom_adapter)
Rails::Initializer.run do |config|
...
Just my 2 (euro)cents,
-- Jean-François.
--
À la renverse.
More information about the Rails
mailing list