Permalink
Browse files

Add mention of after_initialize to the config guide

  • Loading branch information...
1 parent fb661f3 commit a571d4bcf364ac32ff1623b1747ba9d1def5e100 @radar radar committed with fxn Nov 26, 2010
Showing with 8 additions and 0 deletions.
  1. +8 −0 railties/guides/source/configuring.textile
View
8 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:
+
+<ruby>
+ config.after_initialize do
+ ActionView::Base.sanitized_allowed_tags.delete 'div'
+ end
+</ruby>
+
* +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 a571d4b

Please sign in to comment.