diff options
author | Bart de Water <bart.dewater@shopify.com> | 2017-02-13 09:25:08 -0500 |
---|---|---|
committer | Bart de Water <bart.dewater@shopify.com> | 2017-02-13 09:25:08 -0500 |
commit | 870af0679e1a8a1b19053f1d559df5b74af4669f (patch) | |
tree | 1d632818f5f732e11abf731297289ecc66ce13ec /railties | |
parent | 2f60a7525e8727f6c6d111637221b22898179fc5 (diff) | |
download | rails-870af0679e1a8a1b19053f1d559df5b74af4669f.tar.gz rails-870af0679e1a8a1b19053f1d559df5b74af4669f.tar.bz2 rails-870af0679e1a8a1b19053f1d559df5b74af4669f.zip |
Update backtrace cleaner to use `Regexp#match?`
Diffstat (limited to 'railties')
-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 |