From 5f71daee26a1887c815d32985d54e120c9f983ba Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Fri, 17 Jun 2011 01:20:34 +0000 Subject: [PATCH] replace RAILS_ROOT to Rails.root at lib/tasks/initializers.rake. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6087 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- lib/tasks/initializers.rake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tasks/initializers.rake b/lib/tasks/initializers.rake index 3d4a40205..fa20f09b5 100644 --- a/lib/tasks/initializers.rake +++ b/lib/tasks/initializers.rake @@ -1,7 +1,7 @@ desc 'Generates a configuration file for cookie store sessions.' file 'config/initializers/session_store.rb' do - path = File.join(RAILS_ROOT, 'config', 'initializers', 'session_store.rb') + path = File.join(Rails.root, 'config', 'initializers', 'session_store.rb') secret = ActiveSupport::SecureRandom.hex(40) File.open(path, 'w') do |f| f.write <<"EOF"