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.

Jamison Wilde's latest activity

Friday, November 12 2010
4384 belongs_to with :primary_key fails to preload was updated in Ruby on Rails
  • Jamison Wilde
    Jamison Wilde commented at 11:09 PM

    Also, some more background:
    This fails silently in Ruby 1.8.

    In Ruby 1.9 it fails loudly with:

    NoMethodError: undefined method type' for nil:NilClass<br/>

    from...
  • Jamison Wilde
    • Importance changed from to Low
    by Jamison Wilde at 10:40 PM

    There is a additional bug exposed with this fix, in that if you use intern'd column names as your primary key, the comparison then fails.

    :primary_key => :my_co...