I am writing a custom wrapper for open_flash_chart plugin. It\'s placed in /lib and load it as a module in ApplicationController.
It might be the case that you want to explicitly load file(s) under lib directory at time of application initialization.
In my config/application.rb, I have an entry as, config.autoload_paths += %W(#{config.root}/lib)
Also this might be the case that module name/hierarchy is not same as it is in file or location/name of file is not same as that hierarchy, so auto-load of that file is also not possible. So when I added an entry at bottom of config/application.rb as, require "./lib/file_name_without_extention
it worked fine.