#2 open
Jeremy Huffman

Breaks has_one :through

Reported by Jeremy Huffman | February 4th, 2009 @ 01:50 AM

I have some code like this. Your most excellent plug-in makes the third line possible, but then introduces an error in the 2nd line which works fine without the plug-in. The error looks like what you see in the 3rd line without the plug-in (unknown column...)

I changed the domain terms to make this more familiar, hopefully you can see what I mean from this.

@@@ruby has_many :tasks, :through => :projects has_one :primary_task, :through => :projects, :source => :tasks, :conditions => 'tasks.primary = true' has_many :task_items, :through => :tasks


Comments and changes to this ticket

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.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

You can update this ticket by sending an email to from your email client. (help)