Skip to content

Instantly share code, notes, and snippets.

@jfilipe
Created May 26, 2016 19:20
Show Gist options
  • Save jfilipe/1a998ffca7543036690fb1d852b1ae0c to your computer and use it in GitHub Desktop.
Save jfilipe/1a998ffca7543036690fb1d852b1ae0c to your computer and use it in GitHub Desktop.
Displays ActiveRecord queries in the console as they happen.
# in a console session:
ActiveRecord::Base.logger = Logger.new(STDOUT)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment