aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/CHANGELOG
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2006-06-16 10:07:13 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2006-06-16 10:07:13 +0000
commit36dc94a6a1e742848c5a80975b8bf5d216f54022 (patch)
tree4e22f73746eded676c8109c36683380418b893df /activesupport/CHANGELOG
parent7c326a3b54aaeb572a69dabb62fdc453d4814cf3 (diff)
downloadrails-36dc94a6a1e742848c5a80975b8bf5d216f54022.tar.gz
rails-36dc94a6a1e742848c5a80975b8bf5d216f54022.tar.bz2
rails-36dc94a6a1e742848c5a80975b8bf5d216f54022.zip
Added Hash.create_from_xml(string) which will create a hash from a XML string and even typecast if possible [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4453 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activesupport/CHANGELOG')
-rw-r--r--activesupport/CHANGELOG13
1 files changed, 13 insertions, 0 deletions
diff --git a/activesupport/CHANGELOG b/activesupport/CHANGELOG
index 9394fcfed5..5a5fc9d98e 100644
--- a/activesupport/CHANGELOG
+++ b/activesupport/CHANGELOG
@@ -1,5 +1,18 @@
*SVN*
+* 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
+ <note>
+ <title>This is a note</title>
+ <created-at type="date">2004-10-10</created-at>
+ </note>
+ EOT
+
+ ...would return:
+
+ { :note => { :title => "This is a note", :created_at => Date.new(2004, 10, 10) } }
+
* Added Jim Weirich's excellent FlexMock class to vendor (Copyright 2003, 2004 by Jim Weirich (jim@weriichhouse.org)) -- it's not automatically required, though, so require 'flexmock' is still necessary [DHH]
* Fixed that Module#alias_method_chain should work with both foo? foo! and foo at the same time #4954 [anna@wota.jp]