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.

rogergl's latest activity

Wednesday, May 26 2010
3146 Still a bug in association_preload.rb ? was updated in Ruby on Rails
  • rogergl
    rogergl commented at 6:40 AM

    The error was in association_preload.rb but seems to be fixed in Rails 3.

    Regards
    Roger

Friday, September 04 2009
3146 Still a bug in association_preload.rb ? was updated in Ruby on Rails
  • rogergl
    rogergl commented at 8:16 PM

    Changing line 324

    seems to make preloading work as expected:

    primary_key = options[:primary_key] || klass.primary_key

    At least I get as many (106 failures with ...

  • rogergl
    rogergl created the ticket at 12:54 PM

    if I specify my own primary key for belongs_to:

    class Price < ActiveRecord::Base

     belongs_to article :primary_key => "produktnr"
    

    end

    and use a nested include:

    ...