On May 12, 6:23 pm, Rick DeNatale <[email protected]> wrote: > On Tue, May 11, 2010 at 6:53 PM, ms <[email protected]> wrote: > It's not really even a development vs production environment question. > Rails in general loads missing constants when referenced. The > difference in the development environment is that it cleans them out > between requests. >
Actually Rails loads just about everything ahead of time in production since 2.2 or 2.1 (don't remember which) as part of the thread safeness work. The const_missing hook is still there, it is just unlikely to get used in production Fred > Why do you need to use const_defined? Just refer to the class by name > and let Rails do it's thing. > > -- > Rick DeNatale > > Blog:http://talklikeaduck.denhaven2.com/ > Github:http://github.com/rubyredrick > Twitter: @RickDeNatale > WWR:http://www.workingwithrails.com/person/9021-rick-denatale > LinkedIn:http://www.linkedin.com/in/rickdenatale > > -- > 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 [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group > athttp://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 [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-talk?hl=en.

