diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2005-10-16 13:22:36 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2005-10-16 13:22:36 +0000 |
commit | 4c4651ad000789a1661ab4dd16368ebce522cc04 (patch) | |
tree | 7c393998d25d5b673b5e96f29c3d12d3756eb673 /railties/lib/rails_generator/generators/applications/app/app_generator.rb | |
parent | 876e6607c9ae49f04a8ca63ce69afd270d532724 (diff) | |
download | rails-4c4651ad000789a1661ab4dd16368ebce522cc04.tar.gz rails-4c4651ad000789a1661ab4dd16368ebce522cc04.tar.bz2 rails-4c4651ad000789a1661ab4dd16368ebce522cc04.zip |
Use expand_path for app_name so, e.g., rails . is supported
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2644 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/lib/rails_generator/generators/applications/app/app_generator.rb')
-rw-r--r-- | railties/lib/rails_generator/generators/applications/app/app_generator.rb | 2 |
1 files changed, 1 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 447e27977c..f21d2fb6d7 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", :assigns => { :app_name => File.basename(@destination_root) } + m.template "configs/database.yml", "config/database.yml", :assigns => { :app_name => File.basename(File.expand_path(@destination_root)) } m.template "configs/routes.rb", "config/routes.rb" m.template "configs/apache.conf", "public/.htaccess" |