Hello 👋
Railtie is now deprecated so the patch doesn't work anymore since it exposes a Proxy class. The module throws this error:
superclass must be an instance of Class (given an instance of ActiveSupport::Deprecation::DeprecatedConstantProxy
When running Dotenv::Railtie.load, you get:
DEPRECATION WARNING: Dotenv::Railtie is deprecated! Use Dotenv::Rails instead.
Fix would probably be to replace all instances of Dotenv::Railtie by Dotenv::Rails in your patch. Tried it quickly, seems to not crash at least 🙂