Created
June 4, 2009 08:16
-
-
Save miyucy/123508 to your computer and use it in GitHub Desktop.
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
# nofity AR sql-log | |
# RAILS_ROOT/lib/log2n.rb | |
require 'n' | |
module ActiveRecord::ConnectionAdapters # :nodoc: | |
class AbstractAdapter | |
protected | |
def format_log_entry(message, dump) | |
n "%s %s" % [message, dump] | |
end | |
end | |
end | |
# add to RAILS_ROOT/config/environment.rb | |
require 'log2n' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment