If Product and Category models are in a habtm relationship, i.e.
class Product < ActiveRecord::Base
class Category < ActiveRecord::Base
I want a piece of code to be executed every time a product is connected
Where do I put this code? Which callback (and on which model) will be
Any hints appreciated. Thanks for help.
- Kazim Z.