method
clear_all_cached_connections!
rails latest stable - Class:
ActiveRecord::Base
clear_all_cached_connections!()private
No documentation available.
# File activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb, line 157
def clear_all_cached_connections!
if @@allow_concurrency
@@active_connections.each_value do |connection_hash_for_thread|
connection_hash_for_thread.each_value {|conn| conn.disconnect! }
connection_hash_for_thread.clear
end
else
@@active_connections.each_value {|conn| conn.disconnect! }
end
@@active_connections.clear
end