Browse files

Config guide: Mention ActionDispatch::Callbacks methods: before, to_p…

…repare and after
  • Loading branch information...
1 parent c3e8bf0 commit 7174f147ecca6d1aef40df1659e884b0ac69e32c @radar radar committed with fxn Dec 3, 2010
Showing with 4 additions and 0 deletions.
  1. +4 −0 railties/guides/source/configuring.textile
@@ -268,6 +268,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+:

0 comments on commit 7174f14

Please sign in to comment.