aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Molina <marcel@vernix.org>2005-11-21 02:17:10 +0000
committerMarcel Molina <marcel@vernix.org>2005-11-21 02:17:10 +0000
commitdd198e259f6b16f729aa5dbef2f234399cdc0b38 (patch)
treef29b9547009b1406546f985462e147514cfd74c6
parent69bf71f5e9b537f88acc0d4492a057336e7305d1 (diff)
downloadrails-dd198e259f6b16f729aa5dbef2f234399cdc0b38.tar.gz
rails-dd198e259f6b16f729aa5dbef2f234399cdc0b38.tar.bz2
rails-dd198e259f6b16f729aa5dbef2f234399cdc0b38.zip
Pull out Array#to_strings in favor of more general Symbol#to_proc.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3119 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-rw-r--r--activesupport/CHANGELOG2
-rw-r--r--activesupport/lib/active_support/core_ext/array/conversions.rb3
-rw-r--r--activesupport/test/core_ext/array_ext_test.rb4
3 files changed, 0 insertions, 9 deletions
diff --git a/activesupport/CHANGELOG b/activesupport/CHANGELOG
index 6da69d2aae..ac4076d715 100644
--- a/activesupport/CHANGELOG
+++ b/activesupport/CHANGELOG
@@ -2,8 +2,6 @@
* Add Symbol#to_proc, which allows for, e.g. [:foo, :bar].map(&:to_s). [Marcel Molina Jr.]
-* Add Array#to_strings which to_s's all elements in an array. [Marcel Molina Jr., Sam Stephenson]
-
* Added the following methods [Marcel Molina Jr., Sam Stephenson]:
* Object#copy_instance_variables_from(object) to copy instance variables from one object to another
* Object#extended_by to get an instance's included/extended modules
diff --git a/activesupport/lib/active_support/core_ext/array/conversions.rb b/activesupport/lib/active_support/core_ext/array/conversions.rb
index 28539ac7d6..bfa92c3031 100644
--- a/activesupport/lib/active_support/core_ext/array/conversions.rb
+++ b/activesupport/lib/active_support/core_ext/array/conversions.rb
@@ -25,9 +25,6 @@ module ActiveSupport #:nodoc:
join '/'
end
- def to_strings
- map { |element| element.to_s }
- end
end
end
end
diff --git a/activesupport/test/core_ext/array_ext_test.rb b/activesupport/test/core_ext/array_ext_test.rb
index b07fd9854f..159dc2a478 100644
--- a/activesupport/test/core_ext/array_ext_test.rb
+++ b/activesupport/test/core_ext/array_ext_test.rb
@@ -33,8 +33,4 @@ class ArrayExtConversionTests < Test::Unit::TestCase
def test_one_element
assert_equal "one", ['one'].to_sentence
end
-
- def test_to_strings
- assert_equal %w(one two three), [:one, :two, :three].to_strings
- end
end