We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 05b6e5d commit a71350cCopy full SHA for a71350c
1 file changed
railties/lib/rails/application/finisher.rb
@@ -108,6 +108,13 @@ module Finisher
108
ActionDispatch::Reloader.to_cleanup(&callback)
109
end
110
111
+
112
+ # Disable dependency loading during request cycle
113
+ initializer :disable_dependency_loading do
114
+ if config.eager_load && config.cache_classes
115
+ ActiveSupport::Dependencies.unhook!
116
+ end
117
118
119
120
0 commit comments