aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext
diff options
context:
space:
mode:
authorNicholas Seckar <nseckar@gmail.com>2006-05-21 01:42:36 +0000
committerNicholas Seckar <nseckar@gmail.com>2006-05-21 01:42:36 +0000
commit04fb7c30e36432602c849409c020da8f5bcfe9aa (patch)
treed3e9daf3547c9f4278d14377ae048b6233dbd3df /activesupport/lib/active_support/core_ext
parentc50113bc6110624bd411466e7c36bdde23226959 (diff)
downloadrails-04fb7c30e36432602c849409c020da8f5bcfe9aa.tar.gz
rails-04fb7c30e36432602c849409c020da8f5bcfe9aa.tar.bz2
rails-04fb7c30e36432602c849409c020da8f5bcfe9aa.zip
Remove Enumerable#first_match in favor of using break(result_for_each)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4349 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activesupport/lib/active_support/core_ext')
-rw-r--r--activesupport/lib/active_support/core_ext/enumerable.rb8
1 files changed, 0 insertions, 8 deletions
diff --git a/activesupport/lib/active_support/core_ext/enumerable.rb b/activesupport/lib/active_support/core_ext/enumerable.rb
index a49c4c701b..5c556ff98d 100644
--- a/activesupport/lib/active_support/core_ext/enumerable.rb
+++ b/activesupport/lib/active_support/core_ext/enumerable.rb
@@ -1,12 +1,4 @@
module Enumerable #:nodoc:
- def first_match
- match = nil
- each do |items|
- break if match = yield(items)
- end
- match
- end
-
# Collect an enumerable into sets, grouped by the result of a block. Useful,
# for example, for grouping records by date.
#