search for: children_people_2

Displaying 1 result from an estimated 1 matches for "children_people_2".

Did you mean: children_people_3
2010 May 12
0
OT? Using Arel to generate table names in multiple self join query
...s: Person.find :all, :select => ''children_people_3.*'', :joins => { :children => { :children => :children } }, :conditions => { :people => { :name => ''tom'' }, :children_people => { :name => ''dick'' }, :children_people_2 => { :name => ''harry'' }, :children_people_3 => { :name => ''charles'' } } That''s fine insofar as it returns the desired result, but I am very unhappy with the prospect of having to hardcode assumptions about what the tables will be alias...