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

Ticket #8308 (new defect)

Opened 1 year ago

Last modified 1 year ago

[PATCH] Array#to_xml converts name of contained class correctly when class is embedded in module

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

Description

This is related to defect #8305. When the contained class of an Array is namespaced in a Ruby module, invalid XML is produced.

Unelegant patch for this issue is attached below. I couldn't think of a good enough name to create a helper method on String to do the necessary gsub. Please suggest away.

Thanks.

Attachments

xml_serialize.patch (2.0 kB) - added by mbbx6spp on 05/09/07 06:05:04.
Test Case and Fix included in patch.

Change History

05/09/07 06:05:04 changed by mbbx6spp

  • attachment xml_serialize.patch added.

Test Case and Fix included in patch.

05/09/07 06:11:55 changed by mbbx6spp

  • summary changed from [PATCH]: Array#to_xml converts name of contained class correctly when class is embedded in module to [PATCH] Array#to_xml converts name of contained class correctly when class is embedded in module.