module ActiveRecord::AutosaveAssociation

def destroyed_by_association=(reflection)

record in the process.
Records the association that is being destroyed and destroying this
def destroyed_by_association=(reflection)
  @destroyed_by_association = reflection
end