Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

XmlMini autoload cause endless loop with Ruby 1.9.1

#1820

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.

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

State: committed
Milestone: none
Assigned to: Jeremy Kemper Jeremy Kemper
Importance: none

Activity

  1. Luca Guidi
    Luca Guidi

    Same behavior with Ruby 1.9.1 (ruby 1.9.1p0 (2009-01-30 revision 21907) [i386-darwin9.5.0])

    January 31st, 2009 @ 10:15 AM

  2. DHH
    DHH
    • Assigned user set to Jeremy Kemper

    February 5th, 2009 @ 07:57 PM

  3. Jeremy Kemper
    Jeremy Kemper
    • State changed from new to committed
    • Milestone cleared.

    75b2e7e9c90b6229f7ef1a5f3d7ccce44caf6855

    February 5th, 2009 @ 08:46 PM