join parts in build are *always* new, so don't bother checking

This commit is contained in:
Aaron Patterson 2013-10-08 16:13:19 -07:00
parent d6ce327502
commit 8c0ba7b69b

@ -182,7 +182,8 @@ def find_reflection(klass, name)
def build(associations, parent, join_type)
associations.each do |name, right|
reflection = find_reflection parent.base_klass, name
join_association = find_or_build_scalar reflection, parent, join_type
join_association = build_join_association reflection, parent, join_type
@join_parts << join_association
build right, join_association, join_type
end
end