From fe319103dbb5f883b4320410a8b8e5bb64bfaebc Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Tue, 1 Dec 2009 13:18:14 -0800 Subject: Fix rails:update:scripts --- railties/lib/rails/tasks/framework.rake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'railties/lib/rails/tasks/framework.rake') diff --git a/railties/lib/rails/tasks/framework.rake b/railties/lib/rails/tasks/framework.rake index 1611d1d94d..2b8f3378fc 100644 --- a/railties/lib/rails/tasks/framework.rake +++ b/railties/lib/rails/tasks/framework.rake @@ -92,7 +92,7 @@ namespace :rails do namespace :update do def invoke_from_app_generator(method) - require 'generators' + require 'rails/generators' require 'rails/generators/rails/app/app_generator' generator = Rails::Generators::AppGenerator.new ["rails"], { :with_dispatchers => true }, -- cgit v1.2.3 From df9f5e771b0b3d5f2b95d3124514a1fd7db572ab Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Tue, 1 Dec 2009 13:27:59 -0800 Subject: Reinstate rails:update:configs task removed in e1fdc8b --- railties/lib/rails/tasks/framework.rake | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'railties/lib/rails/tasks/framework.rake') diff --git a/railties/lib/rails/tasks/framework.rake b/railties/lib/rails/tasks/framework.rake index 2b8f3378fc..975c180f86 100644 --- a/railties/lib/rails/tasks/framework.rake +++ b/railties/lib/rails/tasks/framework.rake @@ -100,6 +100,11 @@ namespace :rails do generator.invoke(method) end + desc "Update config/boot.rb from your current rails install" + task :configs do + invoke_from_app_generator :create_boot_file + end + desc "Update Prototype javascripts from your current rails install" task :javascripts do invoke_from_app_generator :create_prototype_files -- cgit v1.2.3 From 544de096316b81c7cd890884537a513f2d22f6ba Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Tue, 1 Dec 2009 13:37:12 -0800 Subject: rails:update:configs updates boot.rb and the rest of config/* --- railties/lib/rails/tasks/framework.rake | 1 + 1 file changed, 1 insertion(+) (limited to 'railties/lib/rails/tasks/framework.rake') diff --git a/railties/lib/rails/tasks/framework.rake b/railties/lib/rails/tasks/framework.rake index 975c180f86..f7b53885c8 100644 --- a/railties/lib/rails/tasks/framework.rake +++ b/railties/lib/rails/tasks/framework.rake @@ -103,6 +103,7 @@ namespace :rails do desc "Update config/boot.rb from your current rails install" task :configs do invoke_from_app_generator :create_boot_file + invoke_from_app_generator :create_config_files end desc "Update Prototype javascripts from your current rails install" -- cgit v1.2.3