Detecting changes in a rails has_many :through relationship
问题 I have a model that has a number of has_many, and has_many :through model relationships. For example, in my User class I have: has_many :languages, through: :profile_languages What I would like is to be able to detect when these are added or removed using the 'User.changes' function, which returns an array of attributes that have been changed when called with the User.language_ids= function. Has anyone else tried to do this, or have experience with this? Info on the ActiveModel changes