Created
February 4, 2009 15:41
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# "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