diff options
author | Rizwan Reza <rizwanreza@gmail.com> | 2010-01-16 23:05:39 +0330 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-01-17 14:54:49 +0100 |
commit | cf109342a710e64fbaabc97c90e4af84f7c20a32 (patch) | |
tree | add87aa19e686b36d0cfa3509b74e7f9469c5f27 /railties/lib/rails | |
parent | 8268d68b509cc9da1f6fe14dc61430f781222fd0 (diff) | |
download | rails-cf109342a710e64fbaabc97c90e4af84f7c20a32.tar.gz rails-cf109342a710e64fbaabc97c90e4af84f7c20a32.tar.bz2 rails-cf109342a710e64fbaabc97c90e4af84f7c20a32.zip |
Fixes rake:template task [#3714 status:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'railties/lib/rails')
-rw-r--r-- | railties/lib/rails/tasks/framework.rake | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/railties/lib/rails/tasks/framework.rake b/railties/lib/rails/tasks/framework.rake index f7b53885c8..93ba309039 100644 --- a/railties/lib/rails/tasks/framework.rake +++ b/railties/lib/rails/tasks/framework.rake @@ -85,8 +85,9 @@ namespace :rails do template = ENV["LOCATION"] template = File.expand_path(template) if template !~ %r{\A[A-Za-z][A-Za-z0-9+\-\.]*://} - require 'generators' - generator = Rails::Generators::App.new [ Rails.root ], {}, :destination_root => Rails.root + require 'rails/generators' + require 'rails/generators/rails/app/app_generator' + generator = Rails::Generators::AppGenerator.new [ Rails.root ], {}, :destination_root => Rails.root generator.apply template, :verbose => false end |