Created
September 17, 2008 19:51
-
-
Save methodmissing/11294 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Sequentially step through all of the available initialization routines, | |
# in order (view execution order in source). | |
def process | |
Rails.configuration = configuration | |
check_ruby_version | |
install_gem_spec_stubs | |
set_load_path | |
add_gem_load_paths | |
require_frameworks | |
set_autoload_paths | |
add_plugin_load_paths | |
load_environment | |
initialize_encoding | |
initialize_database | |
initialize_cache | |
initialize_framework_caches | |
initialize_logger | |
initialize_framework_logging | |
initialize_dependency_mechanism | |
initialize_whiny_nils | |
initialize_temporary_session_directory | |
initialize_time_zone | |
initialize_framework_settings | |
add_support_load_paths | |
load_gems | |
load_plugins | |
initialize_framework_views | |
# pick up any gems that plugins depend on | |
add_gem_load_paths | |
load_gems | |
check_gem_dependencies | |
load_application_initializers | |
# the framework is now fully initialized | |
after_initialize | |
# Prepare dispatcher callbacks and run 'prepare' callbacks | |
prepare_dispatcher | |
# Routing must be initialized after plugins to allow the former to extend the routes | |
#initialize_routing | |
initialize_routing | |
# Observers are loaded after plugins in case Observers or observed models are modified by plugins. | |
load_observers | |
# Load view path cache | |
load_view_paths | |
# Load application classes | |
load_application_classes | |
# Disable dependency loading during request cycle | |
disable_dependency_loading | |
# Flag initialized | |
Rails.initialized = true | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment