[Rails] Re: Use callbacks to determine model field changes?

2009-05-28 Thread JL Smith
Thanks for the help guys. However, I've now hit the trap where I need session data in the observer (who is changing the model)... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post t

[Rails] Re: Use callbacks to determine model field changes?

2009-05-27 Thread Craig Demyanovich
If you're on Rails >= 2.1, you can track attribute changes: http://api.rubyonrails.org/classes/ActiveRecord/Dirty.html You might also like Ryan Bates' screencast on the topic: http://railscasts.com/episodes/109-tracking-attribute-changes Regards, Craig -- Craig Demyanovich Mutually Human Sof

[Rails] Re: Use callbacks to determine model field changes?

2009-05-27 Thread Benjamin Curtis
Take a look at ActiveRecord::Dirty -- Benjamin Curtis http://railskits.com/ - Ready-made Rails code http://catchthebest.com/ - Team-powered recruiting http://www.bencurtis.com/ - Personal blog On Wed, May 27, 2009 at 7:25 AM, JL Smith