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