mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Add mention of after_initialize to the config guide
This commit is contained in:
parent
6bb462861f
commit
72e973ebbc
1 changed files with 8 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue