@join_values is passed in, so we should use the parameter

This commit is contained in:
Aaron Patterson 2010-09-15 11:33:33 -07:00
parent eeb3246991
commit 55736ef125

@ -222,7 +222,7 @@ def build_where(opts, other = [])
def build_joins(relation, joins)
association_joins = []
joins = @joins_values.map {|j| j.respond_to?(:strip) ? j.strip : j}.uniq
joins = joins.map {|j| j.respond_to?(:strip) ? j.strip : j}.uniq
joins.each do |join|
association_joins << join if [Hash, Array, Symbol].include?(join.class) && !array_of_strings?(join)