Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #9954 (closed defect: fixed)

Opened 1 year ago

Last modified 1 year ago

Fix to_xml when hash value is a symbol

Reported by: Assaf Assigned to: core
Priority: normal Milestone: 2.x
Component: ActiveSupport Version: edge
Severity: normal Keywords:
Cc:

Description

Allows:

{ :foo=>:bar }.to_xml

to create this:

<foo>bar</foo>

instead of this:

<foo:bar/>

Attachments

fix_symbol_for_to_xml.diff (1.7 kB) - added by Assaf on 10/22/07 23:52:23.

Change History

10/22/07 23:52:23 changed by Assaf

  • attachment fix_symbol_for_to_xml.diff added.

10/23/07 00:42:19 changed by bitsweat

  • status changed from new to closed.
  • resolution set to fixed.

(In [7997]) Hash#to_xml handles symbol values. Closes #9954.