Permalink
Browse files

use key instead of session_key for rails 2.3.8

  • Loading branch information...
1 parent 6eba899 commit 58ea7329add511f3dd220e50e67f2a554c77bc6d @saturnflyer saturnflyer committed Jun 15, 2010
Showing with 2 additions and 2 deletions.
  1. +1 −1 config/environment.rb
  2. +1 −1 lib/generators/instance/templates/instance_environment.rb
View
2 config/environment.rb
@@ -29,7 +29,7 @@
# Make sure the secret is at least 30 characters and all random,
# no regular words or you'll be exposed to dictionary attacks.
config.action_controller.session = {
- :session_key => '_radiant_session',
+ :key => '_radiant_session',
:secret => 'asdfqwerfxcoivswqenadfasdfqewpfioutyqwel'
}
View
2 lib/generators/instance/templates/instance_environment.rb
@@ -29,7 +29,7 @@
# Make sure the secret is at least 30 characters and all random,
# no regular words or you'll be exposed to dictionary attacks.
config.action_controller.session = {
- :session_key => '_<%= app_name %>_session',
+ :key => '_<%= app_name %>_session',
:secret => <% require 'digest/sha1' %>'<%= Digest::SHA1.hexdigest("--#{app_name}--#{Time.now.to_s}--#{rand(10000000)}--") %>'
}

0 comments on commit 58ea732

Please sign in to comment.