Callback on update but not on destroy

Hi,

Does anyone know if there's a callback that gets called when a existing record gets updated but not when a record gets destroyed? After_update and before_update seem to also get called on destroy. I there is no such a callback can anybody suggest an alternative way of triggering a method when a record gets updated unless the record gets destroyed?

jeroen wrote:

Does anyone know if there's a callback that gets called when a existing record gets updated but not when a record gets destroyed? After_update and before_update seem to also get called on destroy. I there is no such a callback can anybody suggest an alternative way of triggering a method when a record gets updated unless the record gets destroyed?

The update callbacks aren't called on destroy. Are you sure you're not doing an update you're not aware of. Can you see such an update in your SQL logs?