Permalink
Browse files

No select! on 1.8.7

  • Loading branch information...
1 parent 61c7227 commit 4714d1835c6b4b1850e569b27b4d55222f7aa086 @ConradIrwin ConradIrwin committed Jun 28, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/pry/wrapped_module.rb
View
2 lib/pry/wrapped_module.rb
@@ -223,7 +223,7 @@ def all_source_locations_by_popularity
ims = all_methods_for(wrapped)
- ims.select!(&:source_location)
+ ims = ims.select(&:source_location)
@all_source_locations_by_popularity = ims.group_by { |v| Array(v.source_location).first }.
sort_by { |k, v| -v.size }

0 comments on commit 4714d18

Please sign in to comment.