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.

joel (at developwithstyle)'s latest activity

Tuesday, May 04 2010
1564 Add support for before and after add/remove callbacks to belongs_to associations was updated in Ruby on Rails
Friday, April 30 2010
4507 STI ignored with scopes was updated in Ruby on Rails
  • joel (at developwithstyle)
    joel (at developwithstyle) commented at 9:10 AM

    Ok, so after further investigation, this is ony happenning when the scope is defined within the parent model (Event).

  • joel (at developwithstyle)
    joel (at developwithstyle) created the ticket at 2:58 AM

    Using Rails3 edge, I have created an Event model with the following scope:

    scope :active, where([ "start > ?", 2.hours.ago ])
    

    Then I extend that model to use ...