I want to be able to configure spring's file watcher to watch additional files when booting my app. Specifically, I want to update Rails to watch the config/initializers directory of engines defined within the application, so that spring will automatically reload when updating those initializers like it does with the root config/initializers.
By iterating engine descendants we can watch paths that intersect with Rails.root.
I want to be able to configure spring's file watcher to watch additional files when booting my app. Specifically, I want to update Rails to watch the
config/initializers
directory of engines defined within the application, so that spring will automatically reload when updating those initializers like it does with the rootconfig/initializers
.By iterating engine descendants we can watch paths that intersect with
Rails.root
.