Skip to content

Commit

Permalink
It seems the test directory backtrace line is output with a / before …
Browse files Browse the repository at this point in the history
…it, thereby previously making it not match the regex. Support APP_DIRS that have backtrace lines maybe beginning with /. [#4277 state:resolved]

Signed-off-by: José Valim <jose.valim@gmail.com>
  • Loading branch information
Ryan Bigg authored and josevalim committed Apr 5, 2010
1 parent 1f7b444 commit efa7e96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion railties/lib/rails/backtrace_cleaner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def initialize

add_gem_filters

add_silencer { |line| !APP_DIRS.any? { |dir| line =~ /^#{dir}/ } }
add_silencer { |line| !APP_DIRS.any? { |dir| line =~ /^\/?#{dir}/ } }
end

private
Expand Down

0 comments on commit efa7e96

Please sign in to comment.