method should first be invoked on CollectionProxy

This is fix for https://github.com/rails/rails/issues/9994