rails/rails — pull request #14562 by jefflai2 (2014-04-02 07:13:32+00:00)
Title: CollectionProxy uses the arel of its association's scope.

CollectionProxy should be able to reuse the behavior (methods) of its parent class,
but with its own state. This change allows CollectionProxy to use the arel object
corresponding to its association's scope. Fixes #14003.