On 9/4/06, Michael Koziarski <[EMAIL PROTECTED]> wrote:
>
> > However we have a very small request. In order for ActiveRecord-JDBC to be
> > usable, users must manually modify the list of supported adapters in
> > activerecord.rb, adding "jdbc" to the list.
> >
> > We would be very thankful if there were a way to include the "jdbc" string
> > in that list in future releases. That would allow users to get up and
> > running just by installing "rails" and "ActiveRecord-JDBC" gems, requiring
> > no additional steps. I believe the currently-listed databases also have
> > external requirements, so adding "jdbc" seems reasonable...especially since
> > we'll never need to add anything else; "jdbc" support covers all databases
> > at once.
> >
> > Is this a reasonable request?
>
>
> There's already provision for that in the initializer:
>
> config.connection_adapters= ["jdbc"]
>
> It seems like it's meant to work ....
>
>     def set_connection_adapters
>       Object.const_set("RAILS_CONNECTION_ADAPTERS",
> configuration.connection_adapters) if
> configuration.connection_adapters
>     end
>
> Is there a reason that that doesn't work?
>
> --
> Cheers
>
> Koz

I was able to get the OpenBase plugin adapter working without even
putting it in the connection_adapters array.  Instead, I initialized
the plugins before anything else:

Rails::Initializer.run(:load_plugins)
Rails::Initializer.run do |config|
...

I haven't had any problems running like this, as the list of adapters
is only used to load the code for the adapter ... or am I mistaken?

-Derrick

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-core
-~----------~----~----~----~------~----~------~--~---

Reply via email to