On 23 Oct 2010, at 15:45, Kandada Boggu wrote: > It is a typo, I am using autoload_paths.
Does it work if you add your path to eager_load_paths as well as autoload_paths? e.g: config.eager_load_paths << File.join(RAILS_ROOT, "custom_lib", "models") It looks as though extra autoload_paths don't get added to eager_load_paths by default and autoloading is turned off when cache_classes is true. -- 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.
