Permalink
Browse files

Merge pull request #5708 from romanvbabenko/refactor/add_gem_filters

Unnecessary uniqueness & force mapping has been removed at BacktraceClea...
  • Loading branch information...
2 parents 87b30fb + d9e4dd1 commit a3dc8ba16f7c453ab3b12c2bf476bdf26a9e2a5b @tenderlove tenderlove committed Apr 2, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/lib/rails/backtrace_cleaner.rb
@@ -19,7 +19,7 @@ def initialize
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.]+)/(.*)}

0 comments on commit a3dc8ba

Please sign in to comment.