aboutsummaryrefslogtreecommitdiffstats
path: root/railties/environments/environment.rb
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-09-12 17:30:40 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-09-12 17:30:40 +0000
commitd25fe84a01bd026945f1e86b1f651094f66151b2 (patch)
tree7ec26374d38adbe122c74d8a725e4c08802b3e05 /railties/environments/environment.rb
parente14acca8a83f14d40d29cdd3418d626ca1043c07 (diff)
downloadrails-d25fe84a01bd026945f1e86b1f651094f66151b2.tar.gz
rails-d25fe84a01bd026945f1e86b1f651094f66151b2.tar.bz2
rails-d25fe84a01bd026945f1e86b1f651094f66151b2.zip
Added create_session_table, drop_session_table, and purge_session_table as rake tasks for databases that supports migrations (MySQL, PostgreSQL, SQLite) to get a table for use with CGI::Session::ActiveRecordStore. Added configuration of session options through config.session_options in Rails::Configuration
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2219 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/environments/environment.rb')
-rw-r--r--railties/environments/environment.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/railties/environments/environment.rb b/railties/environments/environment.rb
index c1da6f5482..1c3b1219e4 100644
--- a/railties/environments/environment.rb
+++ b/railties/environments/environment.rb
@@ -18,6 +18,10 @@ Rails::Initializer.run do |config|
# (by default production uses INFO, the others DEBUG)
# config.log_level = Logger::DEBUG
+ # Use the database for sessions instead of the file system
+ # (create the session table with 'rake create_session_table')
+ # config.session_options[:database_manager] = CGI::Session::ActiveRecordStore
+
# See Rails::Configuration for more options
end