method
remove_connection
v6.0.0 -
Show latest stable
- Class:
ActiveRecord::ConnectionHandling
remove_connection(name = nil)public
No documentation available.
# File activerecord/lib/active_record/connection_handling.rb, line 239
def remove_connection(name = nil)
name ||= @connection_specification_name if defined?(@connection_specification_name)
# if removing a connection that has a pool, we reset the
# connection_specification_name so it will use the parent
# pool.
if connection_handler.retrieve_connection_pool(name)
self.connection_specification_name = nil
end
connection_handler.remove_connection(name)
end