From a1f14d1a85b3abd36cd6cdd093d11fd4bbd4605e Mon Sep 17 00:00:00 2001 From: Florian Weber Date: Sun, 16 Oct 2005 09:51:04 +0000 Subject: Made the rails command use the application name for database names in the tailored database.yml file. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2642 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- .../lib/rails_generator/generators/applications/app/app_generator.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'railties/lib/rails_generator/generators/applications/app/app_generator.rb') 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 a5b5c14797..447e27977c 100644 --- a/railties/lib/rails_generator/generators/applications/app/app_generator.rb +++ b/railties/lib/rails_generator/generators/applications/app/app_generator.rb @@ -32,7 +32,7 @@ class AppGenerator < Rails::Generator::Base m.template "helpers/test_helper.rb", "test/test_helper.rb" # database.yml and .htaccess - m.template "configs/database.yml", "config/database.yml" + m.template "configs/database.yml", "config/database.yml", :assigns => { :app_name => File.basename(@destination_root) } m.template "configs/routes.rb", "config/routes.rb" m.template "configs/apache.conf", "public/.htaccess" -- cgit v1.2.3