HABTM to call after_update ?


Given two models, Frog and Pond, suppose we have a habtm between them
- frogs_ponds.

This statement...

  frog.ponds << Pond.new

...does not trigger any frog.after_update calls.

How can we connect frogs to ponds and update correctly when the link
itself changes - not the frogs or ponds?

Association callbacks might float your boat: http://barrykeenan.blogspot.com/2007/08/association-callbacks.html


Association callbacks might float your boat:http://barrykeenan.blogspot.com/2007/08/association-callbacks.html

Outrageous - that was it! (and note we used :after_add,
because :update_ is irrelevant to an association table.)