diff options
author | Rick Olson <technoweenie@gmail.com> | 2008-02-02 20:18:18 +0000 |
---|---|---|
committer | Rick Olson <technoweenie@gmail.com> | 2008-02-02 20:18:18 +0000 |
commit | 5ef2b089f03271fcff02280fdcbb12d38d726eba (patch) | |
tree | be223e13b3ee27c5c1d063bec186d6d9bd21f6a0 /railties | |
parent | 0da2aa6d11b6cb8433a12a6707355cc15506583a (diff) | |
download | rails-5ef2b089f03271fcff02280fdcbb12d38d726eba.tar.gz rails-5ef2b089f03271fcff02280fdcbb12d38d726eba.tar.bz2 rails-5ef2b089f03271fcff02280fdcbb12d38d726eba.zip |
Reshuffle load order so that routes and observers are initialized after plugins and app initializers. Closes #10980 [rick, fxn]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8787 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties')
-rw-r--r-- | railties/CHANGELOG | 2 | ||||
-rw-r--r-- | railties/lib/initializer.rb | 12 |
2 files changed, 8 insertions, 6 deletions
diff --git a/railties/CHANGELOG b/railties/CHANGELOG index f37702e380..e4a0a98d37 100644 --- a/railties/CHANGELOG +++ b/railties/CHANGELOG @@ -1,5 +1,7 @@ *SVN* +* Reshuffle load order so that routes and observers are initialized after plugins and app initializers. Closes #10980 [rick] + * Git support for script/generate. #10690 [ssoroka] * Update scaffold to use labels instead of bold tags. Closes #10757 [zach-inglis-lt3] diff --git a/railties/lib/initializer.rb b/railties/lib/initializer.rb index 899688b559..2a60ea2f56 100644 --- a/railties/lib/initializer.rb +++ b/railties/lib/initializer.rb @@ -87,16 +87,16 @@ module Rails load_plugins - # Observers are loaded after plugins in case Observers or observed models are modified by plugins. - load_observers - - # Routing must be initialized after plugins to allow the former to extend the routes - initialize_routing - # the framework is now fully initialized after_initialize load_application_initializers + + # Routing must be initialized after plugins to allow the former to extend the routes + initialize_routing + + # Observers are loaded after plugins in case Observers or observed models are modified by plugins. + load_observers end # Check for valid Ruby version |