Browse files

Add mention of after_initialize to the config guide

  • Loading branch information...
1 parent 6bb4628 commit 72e973ebbcddbeb172c2dd3a7ddc12957dc5bec0 @radar radar committed Nov 26, 2010
Showing with 8 additions and 0 deletions.
  1. +8 −0 railties/guides/source/configuring.textile
@@ -39,6 +39,14 @@ Rails will use that particular setting to configure Active Record.
h4. Rails General Configuration
+* +config.after_initialize+ takes a block which will be ran _after_ Rails has finished initializing. Useful for configuring values set up by other initializers:
+ config.after_initialize do
+ ActionView::Base.sanitized_allowed_tags.delete 'div'
+ end
* +config.autoload_once_paths+ accepts an array of paths from which Rails will automatically load from only once. All elements of this array must also be in +autoload_paths+.
* +config.autoload_paths+ accepts an array of additional paths to prepend to the load path. By default, all app, lib, vendor and mock paths are included in this list.

0 comments on commit 72e973e

Please sign in to comment.