diff options
author | José Valim <jose.valim@gmail.com> | 2010-03-08 21:06:26 +0100 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-03-08 21:06:26 +0100 |
commit | 7942e909608f24db0365943c5d9ad51cbb4d27b5 (patch) | |
tree | 6a9b51155b9220dbf98d4b1c78d8edccabd231c5 /railties/lib/rails/application | |
parent | 36eb1a686c831d5a14998bb9ac7cc60efa363373 (diff) | |
parent | ae93789d9ad9095ca21784287464b760db12a095 (diff) | |
download | rails-7942e909608f24db0365943c5d9ad51cbb4d27b5.tar.gz rails-7942e909608f24db0365943c5d9ad51cbb4d27b5.tar.bz2 rails-7942e909608f24db0365943c5d9ad51cbb4d27b5.zip |
Merge master.
Diffstat (limited to 'railties/lib/rails/application')
-rw-r--r-- | railties/lib/rails/application/configuration.rb | 4 | ||||
-rw-r--r-- | railties/lib/rails/application/routes_reloader.rb | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/railties/lib/rails/application/configuration.rb b/railties/lib/rails/application/configuration.rb index a00f9c43ae..d3a0ecb243 100644 --- a/railties/lib/rails/application/configuration.rb +++ b/railties/lib/rails/application/configuration.rb @@ -21,6 +21,10 @@ module Rails @consider_all_requests_local = true end + def middleware + @@default_middleware_stack ||= default_middleware + end + def paths @paths ||= begin paths = super diff --git a/railties/lib/rails/application/routes_reloader.rb b/railties/lib/rails/application/routes_reloader.rb index fde6211c5d..a5154f4bba 100644 --- a/railties/lib/rails/application/routes_reloader.rb +++ b/railties/lib/rails/application/routes_reloader.rb @@ -27,7 +27,7 @@ module Rails routes.clear! paths.each { |path| load(path) } - routes.finalize! + ActionController.base_hook { routes.finalize! } nil ensure |