Created
October 14, 2013 16:30
-
-
Save Davidslv/6978364 to your computer and use it in GitHub Desktop.
railsrc
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
#!/usr/bin/env ruby | |
# show queries | |
def logs_on | |
if defined?(ActiveRecord) | |
ActiveRecord::Base.logger = Logger.new(STDOUT) | |
ActiveRecord::Base.clear_reloadable_connections! | |
"Logs on!" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment