rails/rails — pull request #14508 by al2o3cr (2014-03-28 04:41:44+00:00)
Title: Backport #14154 to 4-1-stable

This allows the default scope to be built using the current table alias.
Resolves #12770

/cc @tenderlove