This project is archived and is in readonly mode.
Enable lower camel-casing on to_xml
Reported by Jeremy Holland | November 1st, 2010 @ 03:14 AM
While the to_xml method on activemodel implementations and in the core extensions does allow you to pass :camelize => true as an option, it defaults to upper camel case and allows no alternative. I propose keeping the default behavior, but allowing it to accept :camelize => :lower to indicate that the tag names should be represented as lower camel-case, which is a requirement for certain XML specifications (e.g. OpenSocial XML format).
Comments and changes to this ticket
-
Jeremy Holland November 1st, 2010 @ 03:18 AM
I have implemented this solution in the attached patch.
-
Aaron Patterson November 3rd, 2010 @ 06:03 PM
- State changed from new to committed
- Importance changed from to Low
This is applied to master. Thanks!
-
Repository November 3rd, 2010 @ 06:03 PM
- State changed from committed to resolved
(from [ea0faa2055fbbe6ac9ebe960ddf4bea8adda287a]) Allowing to_xml :camelize option to be set to :lower to enable lower-camelcase tags [#5903 state:resolved] https://github.com/rails/rails/commit/ea0faa2055fbbe6ac9ebe960ddf4b...
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>
People watching this ticket
Attachments
Referenced by
- 5903 Enable lower camel-casing on to_xml (from [ea0faa2055fbbe6ac9ebe960ddf4bea8adda287a]) Allowin...