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.

Brian Johnson's latest activity

Wednesday, February 25 2009
1756 has_one with :foreign_key & :primary_key bug was updated in Ruby on Rails
  • Brian Johnson
    Brian Johnson commented at 4:35 AM

    Graeme, your tests pass on my fork. Thomas, I'd like to include your issue as well, but I need a failing test first.

Thursday, February 19 2009
1756 has_one with :foreign_key & :primary_key bug was updated in Ruby on Rails
  • Brian Johnson
    Brian Johnson commented at 6:08 PM

    That's really strange because id_to_record_map, ids = construct_id_map(records, reflection.options[:primary_key]) is functionally equivalent to your patch. You ...

Wednesday, February 18 2009
1756 has_one with :foreign_key & :primary_key bug was updated in Ruby on Rails
  • Brian Johnson
    Brian Johnson commented at 6:39 PM

    Ok, everything is good on edge rails with include, but I added a test case to the git repo anyway.

  • Brian Johnson
    Brian Johnson commented at 4:32 PM

    apparently my issue was related to http://rails.lighthouseapp.com/p...

  • Brian Johnson
    Brian Johnson commented at 4:24 PM

    just FYI - looks like this is already changed in edge, but the association isn't preloading for me. I'm working on a test case for it.

    id_to_record_map, ids = c...

Tuesday, February 17 2009
1756 has_one with :foreign_key & :primary_key bug was updated in Ruby on Rails
  • Brian Johnson
    Brian Johnson commented at 11:45 PM

    If you can make a test case for it I will add it to my git repo. Not sure what the best way to get this back into the main repo though, maybe I should do a pull...

Wednesday, February 04 2009
1633 has_many with :primary_key option bug was updated in Ruby on Rails
  • Brian Johnson
    Brian Johnson commented at 1:42 AM

    Oops, my bad. Yes, this is for a bug with has_one. I guess I had has_one on my mind so I saw has_one instead of has_many in the title. There is a similar bug in...

Tuesday, February 03 2009
1633 has_many with :primary_key option bug was updated in Ruby on Rails
  • Brian Johnson
    Brian Johnson commented at 3:53 PM

    Sorry, just one more thing, this started as ticket 1756 http://rails.lighthouseapp.com/p...

  • Brian Johnson
    Brian Johnson commented at 3:51 PM

    I also made an update to make one of the changes consistent with the existing fix from this ticket.

  • Brian Johnson
    Brian Johnson commented at 3:49 PM

    There is still an issue in has_one in associations.rb and new_record in has_one_association.rb. There are some tests included in the commit, but just from looki...