Breaks has_one :through
-
Jeremy Huffman
retry formatting failure...
has_many :tasks, :through => :projects has_one :primary_task, :through => :projects, :source => :tasks, :conditions => 'tasks.primary = true' has_many :task_items, :through => :tasks
-
Jeremy Huffman
last try...
has_many :tasks, :through => :projects
has_one :primary_task, :through => :projects, :source => :tasks, :conditions => 'tasks.primary = true'
has_many :task_items, :through => :tasks
-
Ian White
- State changed from new to open
That sounds bad! thanks for the report, what rails version etc?
Any chance of forking and adding a failing spec, to get things going?
-
jopotts
I've just run into the same problem as Jeremy.
Has anyone looked into this yet?
-
Matt Scilipoti
It looks like janmejay answered it in Sept. 2008: http://github.com/janmejay/nested_has_many_through/tree/master.
Since JackDanger forked janmejay AND has commits for rails 2.3, I changed my plugin to use his: git://github.com/JackDanger/nested_has_many_through.git. This one is working fine for me.
Hope this helps.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.