diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2012-04-02 16:18:25 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2012-04-02 16:18:25 -0700 |
commit | a3dc8ba16f7c453ab3b12c2bf476bdf26a9e2a5b (patch) | |
tree | d6339cf27febadf8ccee8e32fdc5a952dac6cf40 /railties/lib/rails | |
parent | 87b30fb2e6536b893b6cc2553dad89df8356d7bb (diff) | |
parent | d9e4dd1d66f920c2f468c823fe9f2c097c62925c (diff) | |
download | rails-a3dc8ba16f7c453ab3b12c2bf476bdf26a9e2a5b.tar.gz rails-a3dc8ba16f7c453ab3b12c2bf476bdf26a9e2a5b.tar.bz2 rails-a3dc8ba16f7c453ab3b12c2bf476bdf26a9e2a5b.zip |
Merge pull request #5708 from romanvbabenko/refactor/add_gem_filters
Unnecessary uniqueness & force mapping has been removed at BacktraceClea...
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 cc26db849d..539f68a3be 100644 --- a/railties/lib/rails/backtrace_cleaner.rb +++ b/railties/lib/rails/backtrace_cleaner.rb @@ -19,7 +19,7 @@ module Rails def add_gem_filters return unless defined?(Gem) - gems_paths = (Gem.path + [Gem.default_dir]).uniq.map!{ |p| Regexp.escape(p) } + gems_paths = (Gem.path | [Gem.default_dir]).map { |p| Regexp.escape(p) } return if gems_paths.empty? gems_regexp = %r{(#{gems_paths.join('|')})/gems/([^/]+)-([\w.]+)/(.*)} |