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.

Nick Sellen's latest activity

Saturday, November 29 2008
1486 active record conditions to deal with nils in arrays was updated in Ruby on Rails
  • Nick Sellen
    Nick Sellen commented at 6:43 PM

    ok

    activerecord already makes allowance for a nil/null oddity, i.e.:

    
    :conditions => {:something => nil}
    

    (resulting in "something is null" rather than "somet...

Thursday, November 27 2008
1486 active record conditions to deal with nils in arrays was created in Ruby on Rails
  • Nick Sellen
    Nick Sellen created the ticket at 5:24 PM

    currently, this:

    
    MyModel.find(:all,:conditions => {:some_param => [nil]})
    

    returns differently to:

    
    MyModel.find(:all,:conditions => {:some_param => nil})
    
    ...