# File lib/data_objects/connection.rb, line 73 def self.inherited(target) target.class_eval do # Allocate a Connection object from the pool, creating one if necessary. This method is active in Connection subclasses only. def self.new(*args) instance = allocate instance.send(:initialize, *args) instance end include Quoting end if driver_module_name = target.name.split('::')[-2] driver_module = DataObjects::const_get(driver_module_name) driver_module.class_eval "def self.logger\n@logger\nend\n\ndef self.logger=(logger)\n@logger = logger\nend\n", __FILE__, __LINE__ driver_module.logger = DataObjects::Logger.new(nil, :off) end end