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?

-- 
Rails Wheels - Find Plugins, List & Sell Plugins - http://railswheels.com

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to