Skip to content

Instantly share code, notes, and snippets.

@jrun
Created February 4, 2009 15:41
Show Gist options
  • Save jrun/58151 to your computer and use it in GitHub Desktop.
Save jrun/58151 to your computer and use it in GitHub Desktop.
Helpful when debugging from script/console or irb. This allows you to poke into JDBC stuff.
# "u" is an ActiveRecord::Base subclass
u.class.connection.instance_variable_get("@connection").instance_variable_get("@connection")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment