Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bundler difference between setup and require? [duplicate]

Tags:

ruby

bundler

I often see 2 variations in projects that use Bundler.

One is:

require "bundler/setup"
Bundler.require(:default)

And another:

require 'bundler'
Bundler.setup :default, (ENV['RACK_ENV'] || 'development')

Are tye both the same or have variations?

like image 228
Autodidact Avatar asked Aug 25 '26 03:08

Autodidact


1 Answers

Google can be your friend. Read this and this.

TL;DR Use Bundler.require instead of Bundler.setup

like image 198
Amir Raminfar Avatar answered Aug 27 '26 18:08

Amir Raminfar