diff options
author | Joshua Peek <josh@joshpeek.com> | 2009-09-25 23:15:49 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2009-09-25 23:15:49 -0500 |
commit | c83c0f693628baa644eb902ff70d719fe33e3787 (patch) | |
tree | 3c3ee8611956ca8c5f6b5b58e9f88b6df12c95c0 /railties/lib/rails/generators | |
parent | 5fba5409f7cffc67a5966fc386c945b5a935c60c (diff) | |
download | rails-c83c0f693628baa644eb902ff70d719fe33e3787.tar.gz rails-c83c0f693628baa644eb902ff70d719fe33e3787.tar.bz2 rails-c83c0f693628baa644eb902ff70d719fe33e3787.zip |
Remove config.ru generation from --with-dispatchers option
Diffstat (limited to 'railties/lib/rails/generators')
3 files changed, 5 insertions, 8 deletions
diff --git a/railties/lib/rails/generators/rails/app/app_generator.rb b/railties/lib/rails/generators/rails/app/app_generator.rb index 8d8f138dca..b2322f90b4 100644 --- a/railties/lib/rails/generators/rails/app/app_generator.rb +++ b/railties/lib/rails/generators/rails/app/app_generator.rb @@ -115,7 +115,6 @@ module Rails::Generators def create_dispatch_files return unless options[:with_dispatchers] - copy_file "dispatchers/config.ru", "config.ru" template "dispatchers/dispatch.rb", "public/dispatch.rb" chmod "public/dispatch.rb", 0755, :verbose => false diff --git a/railties/lib/rails/generators/rails/app/templates/config.ru b/railties/lib/rails/generators/rails/app/templates/config.ru index 30b00bfa1f..acbfe4e9ae 100644 --- a/railties/lib/rails/generators/rails/app/templates/config.ru +++ b/railties/lib/rails/generators/rails/app/templates/config.ru @@ -1,2 +1,7 @@ +# Rack Dispatcher + +# Require your environment file to bootstrap Rails require File.dirname(__FILE__) + '/config/environment' + +# Dispatch the request run ActionController::Dispatcher.new diff --git a/railties/lib/rails/generators/rails/app/templates/dispatchers/config.ru b/railties/lib/rails/generators/rails/app/templates/dispatchers/config.ru deleted file mode 100644 index acbfe4e9ae..0000000000 --- a/railties/lib/rails/generators/rails/app/templates/dispatchers/config.ru +++ /dev/null @@ -1,7 +0,0 @@ -# Rack Dispatcher - -# Require your environment file to bootstrap Rails -require File.dirname(__FILE__) + '/config/environment' - -# Dispatch the request -run ActionController::Dispatcher.new |