mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
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
This commit is contained in:
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user