Method deprecated
This method is deprecated on the latest stable version of Rails.
The last existing version (v2.1.0) is shown here.
clear_reloadable_connections!()
public
Clears the cache which maps classes
Show source
def clear_reloadable_connections!
if @@allow_concurrency
@@active_connections.each do |thread_id, conns|
conns.each do |name, conn|
if conn.requires_reloading?
conn.disconnect!
@@active_connections[thread_id].delete(name)
end
end
end
else
@@active_connections.each do |name, conn|
if conn.requires_reloading?
conn.disconnect!
@@active_connections.delete(name)
end
end
end
end