diff options
author | Rick Olson <technoweenie@gmail.com> | 2006-06-17 03:01:57 +0000 |
---|---|---|
committer | Rick Olson <technoweenie@gmail.com> | 2006-06-17 03:01:57 +0000 |
commit | ae0e1a0682c853d0cdc969a82cd23455b4d2ca3e (patch) | |
tree | 9e7f607f2fc78e91257880adc47686362d1a6948 /activesupport/CHANGELOG | |
parent | 2bbcff8cf4488c0f64bf5ac23e9b5a8eb13f07d5 (diff) | |
download | rails-ae0e1a0682c853d0cdc969a82cd23455b4d2ca3e.tar.gz rails-ae0e1a0682c853d0cdc969a82cd23455b4d2ca3e.tar.bz2 rails-ae0e1a0682c853d0cdc969a82cd23455b4d2ca3e.zip |
Enhance Symbol#to_proc so it works with list objects, such as multi-dimensional arrays. Closes #5295 [nov@yo.rim.or.jp]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4455 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activesupport/CHANGELOG')
-rw-r--r-- | activesupport/CHANGELOG | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/activesupport/CHANGELOG b/activesupport/CHANGELOG index 5a5fc9d98e..0c3598b351 100644 --- a/activesupport/CHANGELOG +++ b/activesupport/CHANGELOG @@ -1,5 +1,10 @@ *SVN* +* Enhance Symbol#to_proc so it works with list objects, such as multi-dimensional arrays. Closes #5295 [nov@yo.rim.or.jp]. Example: + + {1 => "one", 2 => "two", 3 => "three"}.sort_by(&:first).map(&:last) + #=> ["one", "two", "three"] + * Added Hash.create_from_xml(string) which will create a hash from a XML string and even typecast if possible [DHH]. Example: Hash.create_from_xml <<-EOT |