use ActiveRecord::Associations::CollectionAssociation.reader instead of ...

...proxy. In rails 4, the attr_reader proxy was removed. The method reader returns @proxy.