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
This commit is contained in:
parent
fe06b28c11
commit
5f71daee26
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue