Previous answers does not work. Here is a working one: http://ileitch.github.com/2012/03/24/rails-32-code-reloading-from-lib.html
You have to use both:
config.watchable_dirs['lib'] = [:rb]
and
require_dependency
but any config.autoload_paths based solution won't work in Rails ~> 3.2