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

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
153107d9ef8352ea7f787d2090d81666?d=identicon&s=25 Marston A. (Guest)
on 2007-03-04 12: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.