From 38136d615e52d7c07c17d6aba03dc667b3302615 Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Fri, 17 Nov 2006 14:09:04 +0000 Subject: Grep slightly faster than select =~ git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5546 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activesupport/lib/active_support/core_ext/exception.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'activesupport/lib/active_support/core_ext/exception.rb') 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 -- cgit v1.2.3