File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -27,13 +27,16 @@ module Rails
27
27
extend ActiveSupport ::Autoload
28
28
extend ActiveSupport ::Benchmarkable
29
29
30
- autoload :HealthController
31
30
autoload :Info
32
31
autoload :InfoController
33
32
autoload :MailersController
34
- autoload :PwaController
35
33
autoload :WelcomeController
36
34
35
+ eager_autoload do
36
+ autoload :HealthController
37
+ autoload :PwaController
38
+ end
39
+
37
40
class << self
38
41
@application = @app_class = nil
39
42
Original file line number Diff line number Diff line change @@ -78,6 +78,7 @@ module Finisher
78
78
if config . eager_load
79
79
ActiveSupport . run_load_hooks ( :before_eager_load , self )
80
80
Zeitwerk ::Loader . eager_load_all
81
+ Rails . eager_load!
81
82
config . eager_load_namespaces . each ( &:eager_load! )
82
83
83
84
if config . reloading_enabled?
You can’t perform that action at this time.
0 commit comments