From: Rick DeNatale Date: 2009-06-18T22:46:42+09:00 Subject: Re: ActiveSupport "is not missing constant" errors On Thu, Jun 18, 2009 at 1:57 AM, Tony Arcieri wrote: > On Wed, Jun 17, 2009 at 11:54 PM, Tony Arcieri wrote: > >> But for what it's worth, I've had that kind of problem before when the >>> rails auto-loading magic is triggered in threads; i.e. it's not thread-safe. >>> >> >> Why not? Probably because autoload in Ruby (which ActiveSupport now uses to implement loading missing constants) isn't and it appears to be difficult to make it so: http://redmine.ruby-lang.org/issues/show/921 > And more to the point: how can you implement this sort of automatic code > loading so it works alongside ActiveSupport? I'm not sure I know how. Even if autoload were thread safe, I think you're approach, which if I remember it correctly, of trying to explicitly require files until things work, is prone to confusing or being confused by code using autoload. -- Rick DeNatale Blog: http://talklikeaduck.denhaven2.com/ Twitter: http://twitter.com/RickDeNatale WWR: http://www.workingwithrails.com/person/9021-rick-denatale LinkedIn: http://www.linkedin.com/in/rickdenatale