Forum: Ruby on Rails Overriding Delete/Destroy in ActiveRecord

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
90bedc2d9234191f2b35dcb9fbbc4390?d=identicon&s=25 Theodore Mills (Guest)
on 2006-01-18 00: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.

-Theo
This topic is locked and can not be replied to.