Created
August 3, 2011 18:12
-
-
Save cwsaylor/1123361 to your computer and use it in GitHub Desktop.
Log sql queries to console in Rails 3.0
This file contains hidden or 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
ActiveRecord::Base.logger = Logger.new(STDOUT) if defined? Rails::Console |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment