aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyan Bigg <radarlistener@gmail.com>2010-12-03 13:05:58 +1100
committerRyan Bigg <radarlistener@gmail.com>2010-12-03 13:05:58 +1100
commit1304c92b68ef365fd4863de0a9fd5ce38b71b67c (patch)
tree69d429da67fee04725abc46760639555120cfd08
parent4d11af2e8fa76b32e7480938c85037d907da3ae9 (diff)
downloadrails-1304c92b68ef365fd4863de0a9fd5ce38b71b67c.tar.gz
rails-1304c92b68ef365fd4863de0a9fd5ce38b71b67c.tar.bz2
rails-1304c92b68ef365fd4863de0a9fd5ce38b71b67c.zip
Config guide: Mention ActionDispatch::Callbacks methods: before, to_prepare and after
-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 7475575e31..89c6686690 100644
--- a/railties/guides/source/configuring.textile
+++ b/railties/guides/source/configuring.textile
@@ -260,6 +260,10 @@ 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.
+
h4. Configuring Action View
There are only a few configuration options for Action View, starting with four on +ActionView::Base+: