what's the difference between bundle.setup and bundle.require

前端 未结 4 464
野趣味
野趣味 2020-12-31 13:24

From the gemfile man page, I learned there are two ways to import the gems you specified in the Gemfile. The bundle.setup will \"s

4条回答
  •  天命终不由人
    2020-12-31 14:10

    Bundle.setup is not necessory for recently bundler version. in fact, when you run Bundler.require, it always try to setup correct $LOAD_PATH for you.

    the only need is:

    require 'bundler' Bundler.require

提交回复
热议问题