Mark Chadwick on 27 Apr 2007 20:25:05 -0000


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PhillyOnRails] productize



I've never heard of a plugin for this sort of thing, but couldn't you
just switch your ActiveRecord::Base connector as part of your
environment.rb file?

Yeah, if you wanted one application container, AR::Base.connection is stored in Thread.current -- you could check the domain and connect in your application.rb.

You're safe (thread wise) by the time Rails hits your app.rb, though if you're doing backgroundrb or any not-single-thread stuff, may God have mercy on your soul.
 


_______________________________________________
To unsubscribe or change your settings, visit:
http://lists.phillyonrails.org/mailman/listinfo/talk