run prepare callbacks after after_initialize blocks so config.to_prepare actually works

This commit is contained in:
Jeremy Kemper 2008-04-28 11:59:55 -07:00
parent 9a80e97d58
commit 90f6062f7d
1 changed files with 3 additions and 3 deletions

View File

@ -135,12 +135,12 @@ module Rails
load_application_initializers
# Prepare dispatcher callbacks and run 'prepare' callbacks
prepare_dispatcher
# 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