Permalink
Browse files

Detail middleware initialization points in the initialization guide […

…ci skip]
  • Loading branch information...
1 parent 0b5d3f3 commit 862a05edf3af128f25a87999936262b733ed781e @bsodmike bsodmike committed Jan 27, 2013
Showing with 74 additions and 1 deletion.
  1. +74 −1 guides/source/initialization.md
@@ -464,7 +464,80 @@ def initialize!(group=:default) #:nodoc:
end
```
-As you can see, you can only initialize an app once. This is also where the initializers are run.
+As you can see, you can only initialize an app once. This is also where
+the initializers are run through their three stages: `Bootstrap`,
+`Railties`, and `Finisher`.
+The resulting [middleware initialization
+points](https://gist.github.com/4645422) are shown below:
+
+
+NOTE: #BOOTSTRAP
+load_environment_hook
+load_active_support
+set_eager_load
+initialize_logger
+initialize_cache
+initialize_dependency_mechanism
+bootstrap_hook
+\--------------
+\#RAILTIES
+active_support.deprecation_behavior
+active_support.initialize_time_zone
+active_support.initialize_beginning_of_week
+active_support.set_configs
+action_dispatch.configure
+active_model.secure_password
+action_view.embed_authenticity_token_in_remote_forms
+action_view.logger
+action_view.set_configs
+action_view.caching
+action_controller.assets_config
+action_controller.set_helpers_path
+action_controller.parameters_config
+action_controller.set_configs
+action_controller.compile_config_methods
+active_record.initialize_timezone
+active_record.logger
+active_record.migration_error
+active_record.check_schema_cache_dump
+active_record.set_configs
+active_record.initialize_database
+active_record.validate_explain_support
+active_record.log_runtime
+active_record.set_reloader_hooks
+active_record.add_watchable_files
+action_mailer.logger
+action_mailer.set_configs
+action_mailer.compile_config_methods
+setup_sass
+setup_compression
+set_load_path
+set_autoload_paths
+add_routing_paths
+add_locales
+add_view_paths
+load_environment_config
+append_assets_path
+prepend_helpers_path
+load_config_initializers
+engines_blank_point
+turbolinks_xhr_headers
+\--------------
+\#FINISHER
+add_generator_templates
+ensure_autoload_once_paths_as_subset
+add_builtin_route
+build_middleware_stack
+define_main_app_helper
+add_to_prepare_blocks
+run_prepare_callbacks
+eager_load!
+finisher_hook
+set_routes_reloader_hook
+set_clear_dependencies_hook
+disable_dependency_loading
+\--------------
+
TODO: review this

0 comments on commit 862a05e

Please sign in to comment.