diff options
author | Ryan Bigg <radarlistener@gmail.com> | 2010-12-05 20:10:17 +1100 |
---|---|---|
committer | Ryan Bigg <radarlistener@gmail.com> | 2010-12-09 17:54:38 +1000 |
commit | 4902fc73b397ee707771e5320e9f67d23bca31e5 (patch) | |
tree | 036fdf729555e155a33cbd583c326b73f463616f | |
parent | b6eec1decf0a7ba66827fd897f8f01973773092d (diff) | |
download | rails-4902fc73b397ee707771e5320e9f67d23bca31e5.tar.gz rails-4902fc73b397ee707771e5320e9f67d23bca31e5.tar.bz2 rails-4902fc73b397ee707771e5320e9f67d23bca31e5.zip |
Config guide: add session store config option
-rw-r--r-- | railties/guides/source/configuring.textile | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/railties/guides/source/configuring.textile b/railties/guides/source/configuring.textile index 691418860d..9e5dca9945 100644 --- a/railties/guides/source/configuring.textile +++ b/railties/guides/source/configuring.textile @@ -101,6 +101,14 @@ h4. Rails General Configuration * +config.serve_static_assets+ configures Rails to serve static assets. Defaults to _true_, but in the production environment is turned off. The server software used to run the application should be used to serve the assets instead. +* +config.session_store+ is usually set up in +config/initializers/session_store.rb+ and specifies what class to use to store the session. Custom session stores can be specified like so: + +<ruby> + config.session_store = :my_custom_store +</ruby> + +This custom store must be defined as +ActionDispatch::Session::MyCustomStore+. + * +config.threadsafe!+ enables +allow_concurrency+, +cache_classes+, +dependency_loading+ and +preload_frameworks+ to make the application threadsafe. WARNING: Threadsafe operation is incompatible with the normal workings of development mode Rails. In particular, automatic dependency loading and class reloading are automatically disabled when you call +config.threadsafe!+. |