Greg Donald wrote: > On Tue, Feb 16, 2010 at 7:04 PM, Greg Donald <gdon...@gmail.com> wrote: >> You can easily detect a foreign key change with a filter in the model: > Or even better: > > http://www.railsapi.com/doc/rails-v2.3.5/classes/ActiveRecord/Callbacks.html > > > > -- > Greg Donald > destiney.com | gregdonald.com
The callback would only be triggered when you save though (or by validation which itself is triggered by saving). It doesn't detect a simple attribute change without saving. -- Posted via http://www.ruby-forum.com/. -- 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-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.