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.

Michael Johnston's latest activity

Thursday, August 05 2010
2214 Explicit autosave => false should override new_record autosaving was updated in Ruby on Rails
  • Michael Johnston
    • Importance changed from to Low
    by Michael Johnston at 11:43 PM

    The way this was implemented means that when autosave is false on a belongs_to association and you do save an association (that is a new record) manually, the f...

Thursday, December 04 2008
1142 Improved parameter parsing for complex forms was updated in Ruby on Rails
Thursday, September 11 2008
1020 constantize broken when parent != parent by name was updated in Ruby on Rails
  • Michael Johnston
    • Tag set to 2.1, activesupport, dependencies
    • Assigned user set to Jeremy Kemper
    by Michael Johnston at 9:10 AM
  • Michael Johnston
    Michael Johnston created the ticket at 9:09 AM

    see #410 -- 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
      ...
410 Inflector.constantize uses eval which is slow in JRuby and Ruby 1.9 was updated in Ruby on Rails
  • Michael Johnston
    Michael Johnston commented at 8:51 AM

    actually, this fails too:

    
    class Outer2
      module Why
        TOM2 = 5
      end
      include Why
    end
    
    "Outer2::TOM2".constantize
    

    which is why "Logger::INFO".constantize...

  • Michael Johnston
    Michael Johnston commented at 8:38 AM

    sigh. lets try that again.

    
    class Outer
      TOM=5
    end
    
    module Bob
      class Mary
        class Foo < ::Outer
        end
        def self.doit
          i = ::Bob::Mary::Foo.new
    ...
  • Michael Johnston
    Michael Johnston commented at 8:36 AM

    This fails (after about 30 rounds of constantize / const_missing / parent)

    @@@ruby class Outer TOM=5 end

    module Bob class Mary

    class Foo < ::Outer
    end
    def self...