From d25fe84a01bd026945f1e86b1f651094f66151b2 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Mon, 12 Sep 2005 17:30:40 +0000 Subject: 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 --- railties/environments/environment.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'railties/environments/environment.rb') 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 -- cgit v1.2.3