public
Description: Adds query origin tracing to your logs.
Clone URL: git://github.com/ntalbott/query_trace.git
Fixed for Ruby 1.8.6. Hopefully not therefore broken for 1.8.4, but having 
serious difficulty testing.

git-svn-id: 
https://terralien.devguard.com/svn/projects/plugins/query_trace@55 
62287d4f-6109-0410-89f5-c3c281edf842
ntalbott (author)
Mon Nov 05 12:57:18 -0800 2007
commit  5908cb6ddb85fbc1b5b0ef5930a2e7d3b6d1ec9e
tree    9211f8c39e23be066b962b992701db6779f029a5
parent  6a2afafa3081a180b15e99ab0bd809ca1ce6e4d8
...
41
42
43
44
 
45
46
...
41
42
43
 
44
45
46
0
@@ -41,6 +41,6 @@ module QueryTrace
0
   def clean_trace(trace)
0
     return trace unless defined?(RAILS_ROOT)
0
     
0
- trace.select{|t| /#{Regexp.escape(RAILS_ROOT)}/ =~ t}.reject{|t| VENDOR_RAILS_REGEXP =~ t}.collect{|t| t.gsub(RAILS_ROOT + '/', '')}
0
+ trace.select{|t| /#{Regexp.escape(File.expand_path(RAILS_ROOT))}/ =~ t}.reject{|t| VENDOR_RAILS_REGEXP =~ t}.collect{|t| t.gsub(RAILS_ROOT + '/', '')}
0
   end
0
 end

Comments

    No one has commented yet.