Permalink
Browse files

move bundler loading down to #bundle_command

  • Loading branch information...
1 parent a44f228 commit c55d7ab9cbe33ecc0999da9e32e7e229da55c55f @fxn fxn committed May 13, 2011
Showing with 3 additions and 2 deletions.
  1. +3 −2 railties/lib/rails/generators/app_base.rb
@@ -5,8 +5,6 @@
require 'rbconfig'
require 'open-uri'
require 'uri'
-require 'bundler'
-require 'bundler/cli'
module Rails
module Generators
@@ -187,6 +185,9 @@ def gem_for_javascript
end
def bundle_command(command)
+ require 'bundler'
+ require 'bundler/cli'
+
say_status :run, "bundle #{command}"
Bundler::CLI.new.send(command)
end

0 comments on commit c55d7ab

Please sign in to comment.