rails/rails — pull request #10990 by Empact (2013-06-18 09:00:45+00:00)
Title: Fix that CollectionProxy#scoping was failing to set #proxy_association for the returned scope.

This meant that #proxy_association would be nil if your association extension methods were called atop a named scope.

With the change we rely on CollectionProxy's own definition of #scope, which properly sets #proxy_association.