Added a version of AssociationProxy from ActiveRecord 3.0.