Skip to content

Railtie is deprecated so the module crashes when loaded#4

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 馃檪

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions