diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-06-17 01:20:34 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-06-17 01:20:34 +0000 |
commit | 5f71daee26a1887c815d32985d54e120c9f983ba (patch) | |
tree | 871551f95fee1a09f9577c27f96cbc294e63758b /lib/tasks | |
parent | fe06b28c11536cf8fdd4946882611e5cf7130947 (diff) | |
download | redmine-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.rake | 2 |
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" |