static public Method

Base.clear_active_connections!

Clears the cache which maps classes to connections.

Source Code

# File active_record/connection_adapters/abstract/connection_specification.rb, line 84
def clear_active_connections!
  clear_cache!(@@active_connections) do |name, conn|
    conn.disconnect!
  end
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.