我想在Rails项目中使用系统目录中安装的一个gem。由于某种原因,我无法将其添加到Gemfile并捆绑install.Basicaly,我使用bundler。
我想这样做,
require 'gem_installed_in_vendor/bundle'
require 'gem_installed_in_system'
我想知道删除disable_shared_gems
选项有助于我的希望,我会将其从.bundle/config
中删除。但是,它确实有效。
bundle config
的输出是,
Settings are listed in order of priority. The top value will be used.
path
Set for your local app (/Users/my_name/works/thisApp/.bundle/config): "vendor/bundle"
和which gem
的输出是,
/Users/my_name/.rbenv/shims/gem