diff options
author | José Valim <jose.valim@gmail.com> | 2009-06-16 15:57:14 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2009-06-19 16:10:42 +0200 |
commit | 720aceeea9083e8139e06be5aaaa3b9db98f344d (patch) | |
tree | 4b44f95f49acd087decf68d4e5a22cfab607356f /railties/lib/generator/templates/app/config/initializers/session_store.rb.tt | |
parent | ced68c7430216424419ecb4525d3bc6b6847f9c6 (diff) | |
download | rails-720aceeea9083e8139e06be5aaaa3b9db98f344d.tar.gz rails-720aceeea9083e8139e06be5aaaa3b9db98f344d.tar.bz2 rails-720aceeea9083e8139e06be5aaaa3b9db98f344d.zip |
Send new files too.
Diffstat (limited to 'railties/lib/generator/templates/app/config/initializers/session_store.rb.tt')
-rw-r--r-- | railties/lib/generator/templates/app/config/initializers/session_store.rb.tt | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/railties/lib/generator/templates/app/config/initializers/session_store.rb.tt b/railties/lib/generator/templates/app/config/initializers/session_store.rb.tt new file mode 100644 index 0000000000..4499ab84b6 --- /dev/null +++ b/railties/lib/generator/templates/app/config/initializers/session_store.rb.tt @@ -0,0 +1,15 @@ +# Be sure to restart your server when you modify this file. + +# Your secret key for verifying cookie session data integrity. +# If you change this key, all old sessions will become invalid! +# Make sure the secret is at least 30 characters and all random, +# no regular words or you'll be exposed to dictionary attacks. +ActionController::Base.session = { + :key => '_<%= app_name %>_session', + :secret => '<%= app_secret %>' +} + +# Use the database for sessions instead of the cookie-based default, +# which shouldn't be used to store highly confidential information +# (create the session table with "rake db:sessions:create") +# ActionController::Base.session_store = :active_record_store |