move connection into method
This commit is contained in:
parent
56ecff58bf
commit
a45cb10dec
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue