rails/rails — pull request #16610 by sachin004 (2014-08-21 09:42:13+00:00)
Title: join association fix for issue #16436

I have made the fix for the issue https://github.com/rails/rails/issues/16436 please let me know your opinion on this and suggest appropriate edits.