Forum: Ruby on Rails Best way to check if a field is changed upon update to run a

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.
Marston A. (Guest)
on 2007-03-04 13:09
(Received via mailing list)
So I have a settings table with a boolean column in it.  It is mostly
1, but in the case it changes (either way) I need to run a method via
an after filter.  This is probably an easy answer but I want to know
whats the best way to check in my after filter method (or should I do
this test elsewhere? Maybe in the actual update statement?) whether
the boolean field has changed from what it was?  Thanks.
This topic is locked and can not be replied to.