Jon
Not a member
Jon's latest activity
Friday, July 04 2008
548
has_many :through w/ condition returns invalid included records
was created
in Ruby on Rails
-
Jon created the ticket at 1:24 AMGiven the following:
class Father < ActiveRecord::Base
has_many :children
has_many :boys, :through => :children, :conditions => 'boys.age < 10'
end
class ...