Skip to content

Railtie is deprecated so the module crashes when loaded #4

@qmenoret

Description

@qmenoret

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 🙂

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions