Michael Neumann wrote: > Should be easy to fix by using thread-local variables instead of a class > variable: > > module ActiveRecord > class Base > def self.connection > Thread.current['conn'] ||= retrieve_connection > Thread.current['conn'] > end > def self.connection=(conn) > Thread.current['conn'] = conn > end > def self.connected? > !Thread.current['conn'].nil? > end > end > end Where retrieve_connection calls establish_connection with the approriate parameters? if so, it appears to have worked. thanks.