On 6/26/07, Michael Koziarski <[EMAIL PROTECTED]> wrote:

> Whether we choose gems or plugins for the adapters, there's some work
> needed to make sure that it works smoothly.  At present the adapters
> are required very early in the initialization process, so hopefully
> someone who's maintaining / creating an adapter can help us get the
> required changes into AR.

I've written a custom adapter and packaged it as a plugin before.
It's not open source, but it was fairly simple to get working:

Added to config/environment.rb:

config.load_paths += %W( #{RAILS_ROOT}/vendor/plugins/blah_adapter/lib )
config.connection_adapters = %w( blah )

Then I put the adapter file into my plugin:

vendor/plugins/blah_adapter/lib/active_record/connection_adapters/blah_adapter.rb

Hope that helps whoever decides to work on this.

-- 
Chris Wanstrath
http://errfree.com // http://errtheblog.com

--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to