From 7f800b4d69c0750bb47989027580299751a22616 Mon Sep 17 00:00:00 2001 From: Xavier Noria Date: Sat, 1 Sep 2012 20:08:08 +0200 Subject: 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. --- railties/lib/rails/generators/app_base.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'railties/lib/rails/generators') 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 -- cgit v1.2.3