This project is archived and is in readonly mode.

#4165 ✓committed
Xavier Noria

revise #to_a in associations

Reported by Xavier Noria | March 12th, 2010 @ 07:32 PM

Currently #to_a is removed from AssociationProxy.

If you do Array( method_missing sends #to_a to the @target, which invokes Kernel#to_a directly. That issues a warning "warning: default to_a' will be obsolete".

This patch keeps #to_a in AssociationProxy so that Array() works normally, and delegates #to_a to the @target by hand in association collections.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href=""></a>

People watching this ticket


Referenced by