We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
subclasses
descendants
1 parent a438d54 commit 0b8dfaeCopy full SHA for 0b8dfae
lib/spring/application.rb
@@ -129,8 +129,9 @@ def preload
129
130
if defined?(Rails) && Rails.application
131
watcher.add Rails.application.paths["config/initializers"]
132
- Rails::Engine.descendants.each do |engine|
133
- if engine.root.to_s.start_with?(Rails.root.to_s)
+ rails_root = Rails.root.to_s
+ Rails::Engine.subclasses.each do |engine|
134
+ if engine.root.to_s.start_with?(rails_root)
135
watcher.add engine.paths["config/initializers"].expanded
136
end
137
0 commit comments