config.autoload_paths does not work for me. I solve it in other way
Ruby on rails 3 do not automatic reload (autoload) code from /lib folder. I solve it by putting inside
ApplicationController
Dir["lib/**/*.rb"].each do |path|
require_dependency path
end