we don't need the connection around after a disconnect
This commit is contained in:
parent
b82e307931
commit
49e50cad14
@ -241,7 +241,10 @@ module ActiveRecord
|
|||||||
end
|
end
|
||||||
|
|
||||||
def disconnect!
|
def disconnect!
|
||||||
@connection.close
|
unless @connection.nil?
|
||||||
|
@connection.close
|
||||||
|
@connection = nil
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def reset!
|
def reset!
|
||||||
|
Loading…
Reference in New Issue
Block a user