diff options
author | José Valim <jose.valim@plataformatec.com.br> | 2012-08-24 14:11:45 -0700 |
---|---|---|
committer | José Valim <jose.valim@plataformatec.com.br> | 2012-08-24 14:11:45 -0700 |
commit | 73c02220f83cfb181ccf99db0451983324e28804 (patch) | |
tree | 2dedca55093b5d975903c09ff8738f1a0bd1be46 /guides/source/configuring.textile | |
parent | 2c571b3f0544a6457db4818e752f4cd4bacd48b4 (diff) | |
parent | 1807384c96c553af780e98d25ab4750389233f77 (diff) | |
download | rails-73c02220f83cfb181ccf99db0451983324e28804.tar.gz rails-73c02220f83cfb181ccf99db0451983324e28804.tar.bz2 rails-73c02220f83cfb181ccf99db0451983324e28804.zip |
Merge pull request #7436 from sikachu/master-remove-active_record-session_store
Extract ActiveRecord::SessionStore from Rails
Diffstat (limited to 'guides/source/configuring.textile')
-rw-r--r-- | guides/source/configuring.textile | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/guides/source/configuring.textile b/guides/source/configuring.textile index 27eaf1cbc5..9db375c2ca 100644 --- a/guides/source/configuring.textile +++ b/guides/source/configuring.textile @@ -127,7 +127,7 @@ end config.session_store :my_custom_store </ruby> -This custom store must be defined as +ActionDispatch::Session::MyCustomStore+. In addition to symbols, they can also be objects implementing a certain API, like +ActiveRecord::SessionStore+, in which case no special namespace is required. +This custom store must be defined as +ActionDispatch::Session::MyCustomStore+. * +config.time_zone+ sets the default time zone for the application and enables time zone awareness for Active Record. @@ -322,14 +322,6 @@ The caching code adds two additional settings: * +ActionController::Base.page_cache_extension+ sets the extension to be used when generating pages for the cache (this is ignored if the incoming request already has an extension). The default is +.html+. -The Active Record session store can also be configured: - -* +ActiveRecord::SessionStore::Session.table_name+ sets the name of the table used to store sessions. Defaults to +sessions+. - -* +ActiveRecord::SessionStore::Session.primary_key+ sets the name of the ID column used in the sessions table. Defaults to +session_id+. - -* +ActiveRecord::SessionStore::Session.data_column_name+ sets the name of the column which stores marshaled session data. Defaults to +data+. - h4. Configuring Action Dispatch * +config.action_dispatch.session_store+ sets the name of the store for session data. The default is +:cookie_store+; other valid options include +:active_record_store+, +:mem_cache_store+ or the name of your own custom class. |