I have a rails engine. In initializer it requires a bunch of files
from some folder.
In this file user of my engine defines code, business logic,
configures engine, etc..
All this data is stored statically in my engine main module
class << self
@application ||= MyEngine::Application
I want this files to be reloaded on each request to application in
(So that the user don't have to reload server to see changes he just
Of course I can do something like this instead of initializer
But this way i will have issues (because constants defined in this
file wont really reloaded)
The ideal solution would be to make my whole engine reloadable on each
request, but a have not found the way to do it.