diff options
author | Xavier Noria <fxn@hashref.com> | 2012-09-01 20:08:08 +0200 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2012-09-01 20:09:49 +0200 |
commit | 7f800b4d69c0750bb47989027580299751a22616 (patch) | |
tree | c7f058bf8c9b9a4794e0ba9788ce9e859c48ee79 /railties | |
parent | b24352215d1f8a7b698472e23ca6829c3203afdc (diff) | |
download | rails-7f800b4d69c0750bb47989027580299751a22616.tar.gz rails-7f800b4d69c0750bb47989027580299751a22616.tar.bz2 rails-7f800b4d69c0750bb47989027580299751a22616.zip |
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.
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/rails/generators/app_base.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/railties/lib/rails/generators/app_base.rb b/railties/lib/rails/generators/app_base.rb index 742129e258..d69afcd2cb 100644 --- a/railties/lib/rails/generators/app_base.rb +++ b/railties/lib/rails/generators/app_base.rb @@ -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 |