On 22 Oct 2007, at 02:19, Michael Koziarski wrote:

> Dependencies.rb is a risky area to be tweaking this late in the piece,
> so try to localise whatever fixes you need to ActiveRecord

Well it looks as though the easy fix is to change the dependent  
callbacks in associations.rb to use reflection.klass instead of  
reflection.class_name. However it does break things if you have out  
of order associations when you declare multiple models in a single  
file. This happens with the company.rb model file in the ActiveRecord  
tests - rearranging the order of the classes in the file allows it to  
work and all it then passes all the tests.

Shall I submit a patch with this fix or is it likely to be rejected?


Andrew White



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to