aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails
diff options
context:
space:
mode:
Diffstat (limited to 'railties/lib/rails')
-rw-r--r--railties/lib/rails/application/finisher.rb11
1 files changed, 4 insertions, 7 deletions
diff --git a/railties/lib/rails/application/finisher.rb b/railties/lib/rails/application/finisher.rb
index afa79cad1c..cb38d5a5db 100644
--- a/railties/lib/rails/application/finisher.rb
+++ b/railties/lib/rails/application/finisher.rb
@@ -27,19 +27,16 @@ module Rails
end
end
- # Fires the user-supplied after_initialize block (config.after_initialize)
- # Should run before the middleware stack is built, because building the
- # middleware already fires to_prepare callbacks in test and production.
+ initializer :build_middleware_stack do
+ app
+ end
+
initializer :after_initialize do
config.after_initialize_blocks.each do |block|
block.call(self)
end
end
- initializer :build_middleware_stack do
- app
- end
-
# Disable dependency loading during request cycle
initializer :disable_dependency_loading do
if config.cache_classes && !config.dependency_loading