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? --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---