##// END OF EJS Templates
replace RAILS_ROOT to Rails.root at lib/tasks/initializers.rake....
Toshi MARUYAMA -
r5967:5f71daee26a1
parent child
Show More
@@ -1,7 +1,7
1 desc 'Generates a configuration file for cookie store sessions.'
1 desc 'Generates a configuration file for cookie store sessions.'
2
2
3 file 'config/initializers/session_store.rb' do
3 file 'config/initializers/session_store.rb' do
4 path = File.join(RAILS_ROOT, 'config', 'initializers', 'session_store.rb')
4 path = File.join(Rails.root, 'config', 'initializers', 'session_store.rb')
5 secret = ActiveSupport::SecureRandom.hex(40)
5 secret = ActiveSupport::SecureRandom.hex(40)
6 File.open(path, 'w') do |f|
6 File.open(path, 'w') do |f|
7 f.write <<"EOF"
7 f.write <<"EOF"
General Comments 0
You need to be logged in to leave comments. Login now