Forum: Ruby on Rails restrict callback to fields

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Iphan I. (Guest)
on 2006-05-31 17:38
please can some kind soul point me to the right track.

how can I express:

"do something when any field of this class is updated except field X"

I need to do anything that would behave like

after_update :do_something #unless the updated field is field X

that is: after_update is called every time a set_ method is called,
except set_x

Is that at all possible?

This topic is locked and can not be replied to.