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:
parent
b24352215d
commit
7f800b4d69
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue