Use superclass_delegating_accessor for connection handlers

This commit is contained in:
Pratik Naik
2010-05-12 17:43:02 +01:00
parent 9ab1154523
commit 7cbc546d39

View File

@@ -10,7 +10,7 @@ module ActiveRecord
##
# :singleton-method:
# The connection handler
class_inheritable_accessor :connection_handler, :instance_writer => false
superclass_delegating_accessor :connection_handler, :instance_writer => false
self.connection_handler = ConnectionAdapters::ConnectionHandler.new
# Returns the connection currently associated with the class. This can