Forum: Ruby on Rails Overriding Delete/Destroy in ActiveRecord

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Theodore M. (Guest)
on 2006-01-18 01:18
(Received via mailing list)
Anybody know how I can override delete/destroy in objects that have
has_and_belongs_to_many behavior specified?

I'm having issues overriding delete for an ActiveRecord object that
contains a has_and_belongs_to_many relationship. Delete and destroy
are properly overridden for objects that do not have
has_and_belongs_to_many relationships specified, but as soon as I add
any the overridden methods are ignored.

This topic is locked and can not be replied to.