diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2008-11-17 19:16:31 +0100 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2008-11-17 19:27:35 +0100 |
commit | fcce1f17eaf9993b0210fe8e2a8117b61a1f0f69 (patch) | |
tree | dcf89fab841f873dd9c26b3f061f7d1c4e378f86 /railties/lib/rails_generator | |
parent | 4b33fae1f52325d22083de2e83d827b924d1c616 (diff) | |
download | rails-fcce1f17eaf9993b0210fe8e2a8117b61a1f0f69.tar.gz rails-fcce1f17eaf9993b0210fe8e2a8117b61a1f0f69.tar.bz2 rails-fcce1f17eaf9993b0210fe8e2a8117b61a1f0f69.zip |
BACKWARDS INCOMPATIBLE: Renamed application.rb to application_controller.rb and removed all the special casing that was in place to support the former. You must do this rename in your own application when you upgrade to this version [DHH]
Diffstat (limited to 'railties/lib/rails_generator')
-rw-r--r-- | railties/lib/rails_generator/generators/applications/app/app_generator.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/railties/lib/rails_generator/generators/applications/app/app_generator.rb b/railties/lib/rails_generator/generators/applications/app/app_generator.rb index 32c320385d..8c9bc63fc6 100644 --- a/railties/lib/rails_generator/generators/applications/app/app_generator.rb +++ b/railties/lib/rails_generator/generators/applications/app/app_generator.rb @@ -47,7 +47,8 @@ class AppGenerator < Rails::Generator::Base m.file "README", "README" # Application - m.template "helpers/application.rb", "app/controllers/application.rb", :assigns => { :app_name => @app_name, :app_secret => md5.hexdigest } + m.template "helpers/application_controller.rb", "app/controllers/application_controller.rb", :assigns => { + :app_name => @app_name, :app_secret => md5.hexdigest } m.template "helpers/application_helper.rb", "app/helpers/application_helper.rb" m.template "helpers/test_helper.rb", "test/test_helper.rb" m.template "helpers/performance_test.rb", "test/performance/browsing_test.rb" |