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