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.

nikz's latest activity

Sunday, July 06 2008
516 has_one + validation Object#create_something bug was updated in Ruby on Rails
  • nikz
    • Tag changed from activerecord to activerecord, edge, patch, tested
    by nikz at 5:12 AM

    Patch against edge attached :)

Saturday, July 05 2008
516 has_one + validation Object#create_something bug was updated in Ruby on Rails
  • nikz
    nikz commented at 5:37 AM

    It looks like Rails isn't saving the second head - the query:

    SELECT `chicken_id` FROM `heads` WHERE (`heads`.chicken_id IS NULL AND `heads`.id <> 10) 
    

    is t...

  • nikz
    nikz commented at 5:15 AM

    Hey Oleg,

    Ah right :) Nope, I don't think it's to do with the bug I ran into before upon closer inspection.

    I'm still playing with it (as the fact that you g...

Monday, June 30 2008
516 has_one + validation Object#create_something bug was updated in Ruby on Rails
  • nikz
    nikz commented at 11:39 PM

    Hey Oleg,

    It's not to do with scoping at all is it?

    What does your create_head method look like?

    I've run into this one previously I think...

    Cheers,

    Nik

Saturday, June 28 2008
467 Hash Conditions belongs_to sugar was updated in Ruby on Rails
  • nikz
    nikz commented at 2:09 AM

    @Pratik: awww, but this changeset is everything I need to get has_one working :(

    Are we certain we don't want the alias working for the hash conditions?

    If s...

Monday, June 23 2008
467 Hash Conditions belongs_to sugar was updated in Ruby on Rails
  • nikz
    nikz commented at 1:52 AM

    @Josh: Sweet, I'll see what I can do about merging yours and Lawrence's changes, and the :conditions changes. After I (hopefully) get this accepted.

    @Lawrence...

  • nikz
    nikz commented at 1:14 AM

    What's the best way to integrate everything?

    I agree with MatthewRudy that

    Model.find_by_association(@association).should ==
    Model.find(:first, :conditions ...
  • nikz
    nikz commented at 12:12 AM

    I've added the code + tests for polymorphic associations too.

    Didn't think it needed any doc changes, as like Josh says, seems pretty much along the lines of ...

Sunday, June 22 2008
467 Hash Conditions belongs_to sugar was updated in Ruby on Rails
  • nikz
    nikz commented at 11:16 PM

    @MatthewRudY: Hummm, that diff stuff is weird... Guess I'm not using git format-patch correctly (although I followed the guide).

    Anyway, here's a clean diff.

    ...

  • nikz
    nikz commented at 12:30 PM

    Hummm... Lighthouse won't let me upload a diff :(