rails/rails — pull request #10796 by neerajdotname (2013-05-30 04:45:17+00:00)
Title: flatten merged join_values before building the joins

fixes #10669

While joining_values special treatment is given to string values.
By flattening the array it ensures that string values are detected
as strings and not arrays.