Use after_update callback in the model to clear endorements.