From 3e734490c6b3cfa049ec95caa4b8e0bf745976fd Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Tue, 28 Mar 2006 02:10:51 +0000 Subject: Make release rake work on 1.8.4 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4077 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- railties/Rakefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'railties') diff --git a/railties/Rakefile b/railties/Rakefile index 8ac67c48cd..88454a5265 100644 --- a/railties/Rakefile +++ b/railties/Rakefile @@ -84,7 +84,7 @@ end # Make directory structure ---------------------------------------------------------------- def make_dest_dirs(dirs, path = nil) - mkdir_p dirs.map { |dir| File.join(PKG_DESTINATION, path, dir) } + mkdir_p dirs.map { |dir| File.join(PKG_DESTINATION, path.to_s, dir) } end desc "Make the directory structure for the new Rails application" @@ -163,7 +163,7 @@ task :copy_configs do app_name = "rails" socket = nil require 'erb' - File.open("#{PKG_DESTINATION}/config/database.yml", 'w') {|f| f.write ERB.new(IO.read("configs/database.yml"), nil, '-').result(binding)} + File.open("#{PKG_DESTINATION}/config/database.yml", 'w') {|f| f.write ERB.new(IO.read("configs/databases/mysql.yml"), nil, '-').result(binding)} cp "configs/routes.rb", "#{PKG_DESTINATION}/config/routes.rb" -- cgit v1.2.3