Wouldn't ActiveRecord Observer class do what you're looking for?

On Feb 16, 2010, at 1:08 AM, Max Williams wrote:

> Thanks a lot Michael
> 
> I ended up doing your second suggestion, shying away from the rails 
> magic since i couldn't seem to really control it.
> 
> Personally it seems most natural to me for rails to work the association 
> magic when either the foreign key is changed or the direct association 
> set method is called.  I was hunting around and there's various 
> discussions about this on rails development forums but i guess it never 
> got resolved, or the rails gods decided against it.
> 
> Anyway, thanks again for your advice.
> 
> max
> 
> -- 
> 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.
> 

-- 
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.

Reply via email to