Eager Loading in Development

I have some forms that I would like to be able to drive using Class.subclasses. Naturally, this method only returns sensible results once the subclasses have been loaded, so I’ve set config.eager_load = true in my development.rb file to ensure that all of my code is loaded at application startup.

So as to not completely disrupt the “normal” development workflow, config.cache_classes remains false.

I can confirm that the file is being loaded at application startup, but the class has been undefined by the time the request calls Superclass.subclasses.

I feel like I’m missing something obvious here…