Skip to content

Commit

Permalink
require bundle in the app generator
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
fxn committed Sep 1, 2012
1 parent b243522 commit 7f800b4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions railties/lib/rails/generators/app_base.rb
Expand Up @@ -251,6 +251,7 @@ def bundle_command(command)
# 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
Expand Down

0 comments on commit 7f800b4

Please sign in to comment.