This project is archived and is in readonly mode.

#2698 ✓invalid
blythe

Add :margin option to XmlSerializer

Reported by blythe | May 22nd, 2009 @ 06:44 PM

When building custom XML with XmlSerializer (for ActiveRecord) its nice to be able to use the margin option of XMLBuilder rather than reformatting the string output or instantiating a builder.


builder = options[:builder] ||= ::Builder::XmlMarkup.new(:indent => options[:indent], :margin => options[:margin])

Comments and changes to this ticket

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>

Pages