For Rails 3 , modify the instructions in the article from @science's answer. In the environments/development.rb file, add the lines:
ActiveSupport::Dependencies.autoload_paths << File::join( Rails.root, 'lib') ActiveSupport::Dependencies.explicitly_unloadable_constants << 'MyModuleInLibFolder'
Of course, replace your module name with MyModuleInLibFolder .
JellicleCat Jun 08 '12 at 18:46 2012-06-08 18:46
source share