1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

require bundle in the app generator

The app generator is not generally run under bundler, but the Bundler
constant is used here.

In particular you cannot create --dev apps without this.
This commit is contained in:
Xavier Noria 2012-09-01 20:08:08 +02:00
parent b24352215d
commit 7f800b4d69

View file

@ -251,6 +251,7 @@ module Rails
# Thanks to James Tucker for the Gem tricks involved in this call.
_bundle_command = Gem.bin_path('bundler', 'bundle')
require 'bundler'
Bundler.with_clean_env do
print `"#{Gem.ruby}" "#{_bundle_command}" #{command}`
end