diff options
author | José Valim <jose.valim@gmail.com> | 2010-03-27 10:45:54 +0100 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-03-27 10:46:17 +0100 |
commit | 140cc9caf640d9c32649e396cecbaad3743fd907 (patch) | |
tree | d74db0a16dbb51f206e9a2e821ddc983e337ae38 | |
parent | 3172db12e4e7f6abab8ddd25f7911d29a5b65ea0 (diff) | |
download | rails-140cc9caf640d9c32649e396cecbaad3743fd907.tar.gz rails-140cc9caf640d9c32649e396cecbaad3743fd907.tar.bz2 rails-140cc9caf640d9c32649e396cecbaad3743fd907.zip |
Do not check for a valid const name in Rails 3.0 applications. [#4200 state:resolved]
-rw-r--r-- | railties/lib/rails/tasks/framework.rake | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/railties/lib/rails/tasks/framework.rake b/railties/lib/rails/tasks/framework.rake index cd9516033e..738f7f5301 100644 --- a/railties/lib/rails/tasks/framework.rake +++ b/railties/lib/rails/tasks/framework.rake @@ -41,7 +41,8 @@ namespace :rails do require 'rails/generators/rails/app/app_generator' gen = Rails::Generators::AppGenerator.new ["rails"], { :with_dispatchers => true }, :destination_root => Rails.root - gen.send(:valid_app_const?) + File.exists?(Rails.root.join("config", "application.rb")) ? + gen.send(:app_const) : gen.send(:valid_app_const?) gen end end |