This project is archived and is in readonly mode.

#4127 ✓resolved
Carlos Antonio da Silva

Associations bug with :dependent => [:delete or :destroy]

Reported by Carlos Antonio da Silva | March 7th, 2010 @ 11:01 PM | in 3.0.2

It seems last commits refactoring associations introduced a small bug where associations with :dependent => :delete or :destroy were calling association.destroy only, and not association.delete. Here are the two commits:

Attached is a patch using :send to call the right :destroy or :delete method.

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