I'm upgrading a rails app from 5.1 to 7.1.5.1. I have the app working well except for the following issue.
When I try to run
pdf_class = "my_arbitrary_class"
pdf_class.classify.constantize
I get an error of NameError (uninitialized constant MyArbitraryClass):
I have been doing minor / major upgrades the whole way through and only see this issue when I get to Rails 7. I assume there is a change to the code somewhere between 6 and 7 but I can't find any documentation on this specific issue.
I'm running:
- Ruby: 3.2.2
- Rails: 7.1.5.1
Any help on this would be great.