move connection into method

This commit is contained in:
Brian Lopez 2010-07-27 09:22:09 -07:00
parent 56ecff58bf
commit a45cb10dec
1 changed files with 1 additions and 7 deletions

View File

@ -255,11 +255,6 @@ module ActiveRecord
connect
end
# this is set to true in 2.3, but we don't want it to be
def requires_reloading?
false
end
# DATABASE STATEMENTS ======================================
def select_values(sql, name = nil)
@ -569,7 +564,6 @@ module ActiveRecord
private
def connect
@connection = Mysql2::Client.new(@config)
configure_connection
end
def configure_connection
@ -601,4 +595,4 @@ module ActiveRecord
end
end
end
end
end