Skip to content

Commit

Permalink
Fixed for Ruby 1.8.6. Hopefully not therefore broken for 1.8.4, but h…
Browse files Browse the repository at this point in the history
…aving serious difficulty testing.

git-svn-id: https://terralien.devguard.com/svn/projects/plugins/query_trace@55 62287d4f-6109-0410-89f5-c3c281edf842
  • Loading branch information
ntalbott committed Nov 5, 2007
1 parent 6a2afaf commit 5908cb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/query_trace.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ def format_trace(trace)
def clean_trace(trace)
return trace unless defined?(RAILS_ROOT)

trace.select{|t| /#{Regexp.escape(RAILS_ROOT)}/ =~ t}.reject{|t| VENDOR_RAILS_REGEXP =~ t}.collect{|t| t.gsub(RAILS_ROOT + '/', '')}
trace.select{|t| /#{Regexp.escape(File.expand_path(RAILS_ROOT))}/ =~ t}.reject{|t| VENDOR_RAILS_REGEXP =~ t}.collect{|t| t.gsub(RAILS_ROOT + '/', '')}
end
end

0 comments on commit 5908cb6

Please sign in to comment.