aboutsummaryrefslogtreecommitdiffstats
path: root/railties/environments/environment.rb
diff options
context:
space:
mode:
Diffstat (limited to 'railties/environments/environment.rb')
-rw-r--r--railties/environments/environment.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/railties/environments/environment.rb b/railties/environments/environment.rb
index fe12591ded..e7526ab5e3 100644
--- a/railties/environments/environment.rb
+++ b/railties/environments/environment.rb
@@ -40,7 +40,11 @@ Rails::Initializer.run do |config|
# Make Active Record use UTC-base instead of local time
# config.active_record.default_timezone = :utc
-
+
+ # Your secret key for verifying cookie session data integrity.
+ # If you change this key, all old sessions will become invalid!
+ config.action_controller.session = { :secret => '<%= CGI::Session.generate_unique_id(app_name) %>' }
+
# See Rails::Configuration for more options
end
@@ -57,4 +61,4 @@ end
# Mime::Type.register "text/richtext", :rtf
# Mime::Type.register "application/x-mobile", :mobile
-# Include your application configuration below \ No newline at end of file
+# Include your application configuration below