diff options
author | Matthew Draper <matthew@trebex.net> | 2017-04-04 04:39:00 +0930 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-04 04:39:00 +0930 |
commit | e8c33349bfabca28996ac74d344d69c7aaffec50 (patch) | |
tree | 9aa4fde2005d4306000c3e370899261c74e3e5a7 /railties/lib/rails | |
parent | 3ecffab324fc03df76eba91e4c2a7cb89a0580b9 (diff) | |
parent | 870af0679e1a8a1b19053f1d559df5b74af4669f (diff) | |
download | rails-e8c33349bfabca28996ac74d344d69c7aaffec50.tar.gz rails-e8c33349bfabca28996ac74d344d69c7aaffec50.tar.bz2 rails-e8c33349bfabca28996ac74d344d69c7aaffec50.zip |
Merge pull request #27832 from bdewater/backtrace-silencer-regex
Update backtrace cleaner to use `Regexp#match?`
Diffstat (limited to 'railties/lib/rails')
-rw-r--r-- | railties/lib/rails/backtrace_cleaner.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/backtrace_cleaner.rb b/railties/lib/rails/backtrace_cleaner.rb index 5c833e12ba..3bd18ebfb5 100644 --- a/railties/lib/rails/backtrace_cleaner.rb +++ b/railties/lib/rails/backtrace_cleaner.rb @@ -16,7 +16,7 @@ module Rails add_filter { |line| line.sub(DOT_SLASH, SLASH) } # for tests add_gem_filters - add_silencer { |line| line !~ APP_DIRS_PATTERN } + add_silencer { |line| !APP_DIRS_PATTERN.match?(line) } end private |