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

DEPRECATION Warning: DeprecatedConstantAccessor.deprecated_constant without a deprecator is deprecated #5635

Closed
togabrennan opened this issue Oct 6, 2023 · 1 comment

Comments

@togabrennan
Copy link

Environment

  • Ruby 3.2.2
  • Rails 7.1.0
  • Devise 4.9.2

Current behavior

Running my rails 7.1 app generates a deprecation warning.

DEPRECATION WARNING: DeprecatedConstantAccessor.deprecate_constant without a deprecator is deprecated (called from <top (required)> at /Users/brennan/Projects/kidcarekit/config/application.rb:7)

Expected behavior

We shouldn't be using the DeprecatedConstantAccessor anymore, and instead should be using the Devise.deprecator which does not generate a Deprecation Warning.

@togabrennan
Copy link
Author

Fixed via f8f0351
Ref: #5628

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

No branches or pull requests

1 participant