hello list!
when including the same join-table for more than 3 times the aliasing
fails while indexing.
example:
class Bar < ActiveRecord::Base
has_many :foo
end
Bar.find(:all, :include => [:foo, :foo, :foo, :foo, :foo], :conditions
=> "…
from the api the aliasing is supposed to be that way: (please correct me
if i’m wrong)
- “foo” (no aliasing needed for the 1st one)
- “foo foo_bar”
- “foo foo_bar_2” (begin indexing with 2)
- “foo foo_bar_3” <- this is expected, this is what i get -> “foo
foo_bar_2” - “foo foo_bar_4” <- this is expected, this is what i get -> “foo
foo_bar_2”
… a.s.o.
this error occurs on rails 1.16 with AR 1.14.4
can someone confirm this bug or should i upgrade to a newer version?
neongrau