spring icon indicating copy to clipboard operation
spring copied to clipboard

Create a `spring_booted` ActiveSupport load hook

Open andrewn617 opened this issue 1 year ago • 0 comments

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.

I define an ActiveSupport load hook called spring_booted. This can be hooked into in an initializer in an app to do additional configuration.

andrewn617 avatar Jul 30 '24 16:07 andrewn617