Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Railtie is deprecated so the module crashes when loaded #4

Open
qmenoret opened this issue Jun 16, 2024 · 0 comments
Open

Railtie is deprecated so the module crashes when loaded #4

qmenoret opened this issue Jun 16, 2024 · 0 comments

Comments

@qmenoret
Copy link

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 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant