diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-11-10 10:45:39 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-11-10 10:45:39 +0000 |
commit | bc223236a62994737db96becd6a9e8b3579210a1 (patch) | |
tree | f317e2f7b9b05480d7a61d8b9514e0e67938e5d3 /railties/lib | |
parent | df7a087c764013f2d36edbc9746b57ca2ac8d93f (diff) | |
download | rails-bc223236a62994737db96becd6a9e8b3579210a1.tar.gz rails-bc223236a62994737db96becd6a9e8b3579210a1.tar.bz2 rails-bc223236a62994737db96becd6a9e8b3579210a1.zip |
Don't reload routes until plugins have been loaded so they have a chance to extend the routing capabilities [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2967 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/initializer.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/railties/lib/initializer.rb b/railties/lib/initializer.rb index 1535b7213f..082c14c634 100644 --- a/railties/lib/initializer.rb +++ b/railties/lib/initializer.rb @@ -82,7 +82,6 @@ module Rails initialize_logger initialize_framework_logging initialize_framework_views - initialize_routing initialize_dependency_mechanism initialize_breakpoints initialize_whiny_nils @@ -97,6 +96,9 @@ module Rails load_framework_info load_plugins + + # Routing must be initialized after plugins to allow the former to extend the routes + initialize_routing end # Set the <tt>$LOAD_PATH</tt> based on the value of |