Skip to content

Instantly share code, notes, and snippets.

@holamendi holamendi/gist:5143590
Last active Dec 14, 2015

Embed
What would you like to do?
Disable SQL log in Rails Console (3.1 +)
#Turn logs off
old_logger = ActiveRecord::Base.logger
ActiveRecord::Base.logger = nil
#Turn logs on again
ActiveRecord::Base.logger = old_logger
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.