custom_require.rb中的错误

时间:2012-05-22 01:30:02

标签: ruby-on-rails

编辑此文件以使rails应用程序在外部服务器上运行时需要执行哪些操作?

我得到了错误
cannot load such file -- bundler/setup

gem_original_require path

为什么会这样?

   def require path
        if Gem.unresolved_deps.empty? then
          gem_original_require path
        else
          spec = Gem::Specification.find { |s|
            s.activated? and s.contains_requirable_file? path
          }

          unless spec then
            found_specs = Gem::Specification.find_in_unresolved path
            unless found_specs.empty? then
              found_specs = [found_specs.last]
            else
              found_specs = Gem::Specification.find_in_unresolved_tree path
            end

0 个答案:

没有答案