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.

Frederick Cheung's latest activity

Sunday, May 10 2009
2631 Problem with find with :joins and :include in same call was updated in Ruby on Rails
1423 Optional Exception on Mass-assignment of Protected Attributes was updated in Ruby on Rails
2543 Make ActiveRecord::Base.exists? invoke find_initial to support :include scopes was updated in Ruby on Rails
  • Frederick Cheung
    Frederick Cheung commented at 4:26 PM

    Back when the current implementation of exists? came into existance using count == 1 was discussed. Using count has performance implications since it means the ...

2585 HTTP Basic Authentication Broken with Long Credentials was updated in Ruby on Rails
2623 Inconsistent session cookie value from marshalled hash was updated in Ruby on Rails
2615 [Patch] Fixes OrderedHash.[] constructs a broken hash was updated in Ruby on Rails
  • Frederick Cheung
    Frederick Cheung commented at 4:18 PM

    Small nitpick: your test_alternate_initialization test doesn't test anything (i think you've just dropped the assert)

2260 find_in_batches updates (+2 bugs) was updated in Ruby on Rails
2274 named_scope join issue, nil ids was updated in Ruby on Rails
  • Frederick Cheung
    • State changed from new to invalid
    by Frederick Cheung at 3:59 PM

    You need to specify :select => 'addresses.*' or else the id column from the joined table clobbers the one from the addresses table.

1809 Has Many + non default primary key loads incorrect data was updated in Ruby on Rails
2051 ActiveRecord changes incorrect reports integer column changed when passed a s... was updated in Ruby on Rails
  • Frederick Cheung
    • State changed from new to duplicate
    by Frederick Cheung at 3:49 PM

    This is the same issue as #1530 which was fixed (grab that patch or update to 2.3.2)