On Tue, May 11, 2010 at 6:53 PM, ms <[email protected]> wrote: > Thanks for the quick answer! Yes, I am in development mode and this is > actually the problem as you described. How can I force Rails even in > development mode to load ALL classes, is that possible?
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. 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 at http://groups.google.com/group/rubyonrails-talk?hl=en.

