1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

MySQL: ensure that @config is set.

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3264 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
Jeremy Kemper 2005-12-09 23:20:20 +00:00
parent 08309ba51a
commit 39b71bb8a1

View file

@ -80,11 +80,10 @@ module ActiveRecord
"MySQL server has gone away"
]
def initialize(connection, logger, connection_options=nil, config={})
def initialize(connection, logger, connection_options, config)
super(connection, logger)
@connection_options = connection_options
@connection_options, @config = connection_options, config
@null_values_in_each_hash = Mysql.const_defined?(:VERSION)
@config = config
connect
end