aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2006-11-17 14:09:04 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2006-11-17 14:09:04 +0000
commit38136d615e52d7c07c17d6aba03dc667b3302615 (patch)
tree907156c25e3ffb82deda5f4efa42c9a8c4a5e713 /activesupport
parent96cca7db6dd2022d74fd94eb532ceacc8913b57b (diff)
downloadrails-38136d615e52d7c07c17d6aba03dc667b3302615.tar.gz
rails-38136d615e52d7c07c17d6aba03dc667b3302615.tar.bz2
rails-38136d615e52d7c07c17d6aba03dc667b3302615.zip
Grep slightly faster than select =~
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5546 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/lib/active_support/core_ext/exception.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/core_ext/exception.rb b/activesupport/lib/active_support/core_ext/exception.rb
index 2e3965117b..ec15a915be 100644
--- a/activesupport/lib/active_support/core_ext/exception.rb
+++ b/activesupport/lib/active_support/core_ext/exception.rb
@@ -28,6 +28,6 @@ class Exception # :nodoc:
end
def framework_backtrace
- clean_backtrace.select {|line| line =~ FrameworkRegexp}
+ clean_backtrace.grep FrameworkRegexp
end
-end \ No newline at end of file
+end