Here’s a statement you can put in your
environment.rb
file (or in one specific environment config file - such as development.rb
) to have it turned on permanently:if "irb" == $0
ActiveRecord::Base.logger = Logger.new(STDOUT)
end
http://weblog.jamisbuck.org/2007/1/8/watching-activerecord-do-it-s-thing#comment-1266
No comments:
Post a Comment