@join_values is passed in, so we should use the parameter
This commit is contained in:
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)
|
||||
|
Loading…
Reference in New Issue
Block a user