# File lib/patches.rb, line 5 def self.spawn_reconnect(klass=self) # keep ancestors' connection_handlers around to avoid them being garbage collected (@@ancestor_connection_handlers ||= []) << @@connection_handler @@connection_handler = ActiveRecord::ConnectionAdapters::ConnectionHandler.new establish_connection end