joel (at developwithstyle)
Not a member
joel (at developwithstyle)'s latest activity
Tuesday, May 04 2010
Friday, April 30 2010
4507
STI ignored with scopes
was updated
in Ruby on Rails
-
joel (at developwithstyle) commented at 9:10 AMOk, so after further investigation, this is ony happenning when the scope is defined within the parent model (Event).
-
joel (at developwithstyle) created the ticket at 2:58 AMUsing 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 ...