rails/rails — pull request #15396 by al2o3cr (2014-05-28 22:24:12+00:00)
Title: Correctly pass joins when creating a JoinDependency.

Backport of #14834 to 4-0-stable.

/cc @rafaelfranca