Overriding Delete/Destroy in ActiveRecord

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 forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs