Permalink
Browse files

Unnecessary uniqueness & force mapping has been removed at BacktraceC…

…leaner#add_gem_filters
  • Loading branch information...
1 parent eb154c5 commit d9e4dd1d66f920c2f468c823fe9f2c097c62925c @romanvbabenko romanvbabenko 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 d9e4dd1

Please sign in to comment.