Skip to content

Instantly share code, notes, and snippets.

@Davidslv
Created October 14, 2013 16:30
Show Gist options
  • Save Davidslv/6978364 to your computer and use it in GitHub Desktop.
Save Davidslv/6978364 to your computer and use it in GitHub Desktop.
railsrc
#!/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