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.

constantize broken when parent != parent by name

#1020

see #410 Inflector.constantize uses eval which is slow in JRuby and Ruby 1.9 -- I opened a new ticket because I wasn't sure if tickets marked resolved get watched and re-opened?


class Outer2
  module Why
    TOM2 = 5
  end
  include Why
end

"Outer2::TOM2".constantize #fails

in the wild: "Logger::INFO".constantize fails, which causes picnic to fail.

Reported by Michael Johnston · September 11th, 2008 @ 09:09 AM

State: duplicate
Milestone: 2.x
Assigned to: Jeremy Kemper Jeremy Kemper
Importance: none

Activity

  1. Michael Johnston
    Michael Johnston
    • Tag set to 2.1, activesupport, dependencies
    • Assigned user set to Jeremy Kemper

    September 11th, 2008 @ 09:10 AM

  2. Jeremy Kemper
    Jeremy Kemper
    • State changed from new to duplicate

    September 11th, 2008 @ 05:07 PM