Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Don't reload routes until plugins have been loaded so they have a cha…

…nce to extend the routing capabilities [DHH]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2967 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
commit bc223236a62994737db96becd6a9e8b3579210a1 1 parent df7a087
@dhh dhh authored
Showing with 5 additions and 1 deletion.
  1. +2 −0  railties/CHANGELOG
  2. +3 −1 railties/lib/initializer.rb
View
2  railties/CHANGELOG
@@ -1,5 +1,7 @@
*SVN*
+* Don't reload routes until plugins have been loaded so they have a chance to extend the routing capabilities [DHH]
+
* Don't detach or fork for script/server tailing [Nicholas Seckar]
* Added automatic browser launching on OS X when starting script/server [DHH]
View
4 railties/lib/initializer.rb
@@ -82,7 +82,6 @@ def process
initialize_logger
initialize_framework_logging
initialize_framework_views
- initialize_routing
initialize_dependency_mechanism
initialize_breakpoints
initialize_whiny_nils
@@ -97,6 +96,9 @@ def process
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
Please sign in to comment.
Something went wrong with that request. Please try again.