HMT collection_singular_ids= deletion of join models is direct, no destroy callbacks are triggered
问题 Just ran into an issue with a has_many :through association and after/before-destroy callbacks not being triggered. Say, I have users, groups, and an intermediate relation called membership. I have a form that allows users to be enrolled into groups by creating a new membership record when they check off associated checkboxes. Basically an array of group_ids. Looks something like this: Which group would you like to join? (check all that apply) [] Group A [] Group B [] Group C And I wish to