diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2006-03-08 02:56:25 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2006-03-08 02:56:25 +0000 |
commit | cd989472a5248aae4f827c35347bdb871de1822a (patch) | |
tree | 13cad5fa4cd877788747930fe6076fcd01085a0f /activesupport/CHANGELOG | |
parent | 24fca9d92ea9bef676f74259996c4039e014dfe2 (diff) | |
download | rails-cd989472a5248aae4f827c35347bdb871de1822a.tar.gz rails-cd989472a5248aae4f827c35347bdb871de1822a.tar.bz2 rails-cd989472a5248aae4f827c35347bdb871de1822a.zip |
Added Hash#to_xml and Array#to_xml that makes it much easier to produce XML from basic structures [DHH] Moved Jim Weirich's wonderful Builder from Action Pack to Active Support (it's simply too useful to be stuck in AP) [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3812 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activesupport/CHANGELOG')
-rw-r--r-- | activesupport/CHANGELOG | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/activesupport/CHANGELOG b/activesupport/CHANGELOG index 609d56ff68..12692c659c 100644 --- a/activesupport/CHANGELOG +++ b/activesupport/CHANGELOG @@ -1,5 +1,20 @@ *SVN* +* Added Hash#to_xml and Array#to_xml that makes it much easier to produce XML from basic structures [DHH]. Examples: + + { :name => "David", :street_name => "Paulina", :age => 26, :moved_on => Date.new(2005, 11, 15) }.to_xml + + ...returns: + + <person> + <street-name type="string">Paulina</street> + <name type="string">David</name> + <age type="integer">26</age> + <moved-on type="date">2005-11-15</moved-on> + </person> + +* Moved Jim Weirich's wonderful Builder from Action Pack to Active Support (it's simply too useful to be stuck in AP) [DHH] + * Fixed that Array#to_sentence will return "" on an empty array instead of ", and" #3842, #4031 [rubyonrails@beautifulpixel.com] * Add Enumerable#group_by for grouping collections based on the result of some |