As Miked said, this code was good if we wanted to destroy varietal βmanuallyβ:
@varietal = Varietal.find('1') @varietal.destroy def destroy update_attribute(:status, 0) end
It works great. However, as I said, if we update the parent record, I did not find the destroy / delete / delete_all method called by the child ... So, if anyone has an idea ...
source share