Permalink
Browse files

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
  • Loading branch information...
1 parent 876e660 commit 4c4651ad000789a1661ab4dd16368ebce522cc04 @jeremy jeremy committed Oct 16, 2005
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/lib/rails_generator/generators/applications/app/app_generator.rb
@@ -32,7 +32,7 @@ def manifest
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"

0 comments on commit 4c4651a

Please sign in to comment.