summaryrefslogtreecommitdiffstats
path: root/lib/tasks
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-06-17 01:20:34 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-06-17 01:20:34 +0000
commit5f71daee26a1887c815d32985d54e120c9f983ba (patch)
tree871551f95fee1a09f9577c27f96cbc294e63758b /lib/tasks
parentfe06b28c11536cf8fdd4946882611e5cf7130947 (diff)
downloadredmine-5f71daee26a1887c815d32985d54e120c9f983ba.tar.gz
redmine-5f71daee26a1887c815d32985d54e120c9f983ba.zip
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
Diffstat (limited to 'lib/tasks')
-rw-r--r--lib/tasks/initializers.rake2
1 files changed, 1 insertions, 1 deletions
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"