Rails3でlibを自動で読み込まなくなった config/application.rb に config.autoload_paths += %W(#{config.root}/lib) を追記