This project is archived and is in readonly mode.

#1820 ✓committed
Luca Guidi

XmlMini autoload cause endless loop with Ruby 1.9.1

Reported by Luca Guidi | January 29th, 2009 @ 04:25 PM

I'm using Ruby 1.9.1-rc2 (ruby 1.9.1p0 (2009-01-20 revision 21700) [i386-darwin9.5.0]) and trying to run unit tests for AS.

I noticed an endless loop for all the cases which are using XmlMini, which is autoloaded:


autoload :XmlMini, 'active_support/xml_mini'

Autoload expect to find ActiveSupport::XmlMini (look at the second argument), but it doesn't exist, 'cause XmlMini is a top-level module. It cause an endless loop.

The solution (attached as patch) is to include XmlMini in ActiveSupport namespace.

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>

People watching this ticket

Attachments

Pages