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.

Pete P.'s latest activity

Wednesday, April 01 2009
2389 STI changes behavior depending on environment was updated in Ruby on Rails
  • Pete P.
    Pete P. commented at 7:44 PM

    The work around(ugh...)

    You must explicitly name subclasses in the parent class

    
      #for the example above
      class ProjectFeedEvent < FeedEvent
        def self....
  • Pete P.
    Pete P. commented at 7:13 PM

    Ok, I've found the offending method(sort of)...

    Its ActiveRecord::Base#reset_subclasses

    I've attached a simple test case which details it. A couple of key point...

  • Pete P.
    Pete P. commented at 6:30 PM

    As a note, FeedEvent has a polymorphic association

    
      belongs_to :source, :polymorphic => true
    
  • Pete P.
    Pete P. created the ticket at 4:30 AM

    This is a follow up to http://dev.rubyonrails.org/ticke...

    and

    https://rails.lighthouseapp.com/...

    The problem occurs(for me) when cache_classes is set to fals...

188 Single table inheritance bug only in production environment was updated in Ruby on Rails
Saturday, January 24 2009
1083 Calls to private methods via association proxies should act consistently with... was updated in Ruby on Rails
  • Pete P.
    Pete P. commented at 11:50 PM

    Koz, I was pulling my hair out until I came across this ticket. I definitely agree, if you implement method_missing, you should likewise implement respond_to.

    H...

Friday, June 13 2008
393 Routes are case sensitive was updated in Ruby on Rails
  • Pete P.
    Pete P. commented at 8:29 PM

    Ok, so in the above RFC spec its really just referring to the scheme portion of the url, not the path.

    But in any case, consider the usability of having case ...

  • Pete P.
    Pete P. commented at 8:09 PM

    Fyi,

    RFC 1738 - Uniform Resource Locators (URL) - Section 2.1

    ..."For resiliency, programs interpreting URLs should treat upper case letters as equivalent to...

Wednesday, June 11 2008
393 Routes are case sensitive was created in Ruby on Rails
  • Pete P.
    Pete P. created the ticket at 7:20 PM

    All routes are by default case sensitive, so map.connect 'about', :controller=>"about", :action=>"index" is not recognized by a request to /About.

    I'm not too...