In addition, sometimes we get InverseOfAssociationNotFoundError in the same 
scenario, and the related inverse_of's are setup correctly (or at least I 
try to- wrote a test similar to this to check that we have them setup 
correctly as part of a test similar to this one 
https://gist.github.com/garysweaver/9122919 though it needs work) between 
has_one and belongs_to (inverse_of's on both) only once after hot deploy 
and then is fine. Related S.O. question I just 
posted: 
http://stackoverflow.com/questions/21938347/inverseofassociationnotfounderror-and-circular-dependency-detected-in-rails-4

On Friday, February 21, 2014 10:22:56 AM UTC-5, Gary Weaver wrote:
>
> Ok, just bumping this topic because it is actually affecting us now. (What 
> timing, eh?)
>
> When we deploy new code to passenger-enterprise-server-4.0.37 with Rails 
> 4.0.2, at times things have been remove_const'd and I'm assuming that 
> passenger is expecting that Rails autoloading with autoload the constant on 
> second reference? I would at least.
>
> I'm probably just not remembering something, but I'm curious why Rails is 
> not autoloading on reference after a const is unloaded? It seems that 
> instead of raising "Circular dependency detected while autoloading 
> constant..." it would just reload the file, but maybe it doesn't know which 
> to reload?
>
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/rubyonrails-core.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to