Skip to content

Instantly share code, notes, and snippets.

@andykram
Created March 11, 2010 23:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andykram/329866 to your computer and use it in GitHub Desktop.
Save andykram/329866 to your computer and use it in GitHub Desktop.
# print SQL to STDOUT
if ENV.include?('RAILS_ENV') && !Object.const_defined?('RAILS_DEFAULT_LOGGER')
require 'logger'
RAILS_DEFAULT_LOGGER = Logger.new(STDOUT)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment