Marston A.
2007-Mar-04 11:08 UTC
Best way to check if a field is changed upon update to run after_filter
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. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---