@@ -1,7 +1,7 | |||
|
1 | 1 | desc 'Generates a configuration file for cookie store sessions.' |
|
2 | 2 | |
|
3 | 3 | file 'config/initializers/session_store.rb' do |
|
4 |
path = File.join(R |
|
|
4 | path = File.join(Rails.root, 'config', 'initializers', 'session_store.rb') | |
|
5 | 5 | secret = ActiveSupport::SecureRandom.hex(40) |
|
6 | 6 | File.open(path, 'w') do |f| |
|
7 | 7 | f.write <<"EOF" |
General Comments 0
You need to be logged in to leave comments.
Login now