aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides/source/configuring.textile
diff options
context:
space:
mode:
authorRyan Bigg <radarlistener@gmail.com>2010-12-03 17:26:40 +1100
committerRyan Bigg <radarlistener@gmail.com>2010-12-03 17:26:40 +1100
commit79b14407ad044133587ccb2d7fbc89b2e78e5da4 (patch)
tree2d8fec55d64ea8a7007a4ba65aeea0045a9b9c16 /railties/guides/source/configuring.textile
parent7f1c794a11c463f4b50d46180932fa4a62e369a5 (diff)
downloadrails-79b14407ad044133587ccb2d7fbc89b2e78e5da4.tar.gz
rails-79b14407ad044133587ccb2d7fbc89b2e78e5da4.tar.bz2
rails-79b14407ad044133587ccb2d7fbc89b2e78e5da4.zip
Config guide: add tld_length to ActionDispatch section
Diffstat (limited to 'railties/guides/source/configuring.textile')
-rw-r--r--railties/guides/source/configuring.textile4
1 files changed, 4 insertions, 0 deletions
diff --git a/railties/guides/source/configuring.textile b/railties/guides/source/configuring.textile
index 89c6686690..ac1c6e5cc0 100644
--- a/railties/guides/source/configuring.textile
+++ b/railties/guides/source/configuring.textile
@@ -261,9 +261,13 @@ 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.
* +ActionDispatch::Callbacks.before+ takes a block of code to run before the request.
+
* +ActionDispatch::Callbacks.to_prepare+ takes a block to run after +ActionDispatch::Callbacks.before+, but before the request. Runs for every request in +development+ mode, but only once for +production+ or environments with +cache_classes+ set to +true+.
+
* +ActionDispatch::Callbacks.after+ takes a block of code to run after the request.
+* +ActionDispatch::Http::URL.tld_length+ sets the TLD (top-level domain) length for the application. Defaults to +1+.
+
h4. Configuring Action View
There are only a few configuration options for Action View, starting with four on +ActionView::Base+: