heartcombo / devise

Flexible authentication solution for Rails with Warden.
http://blog.plataformatec.com.br/tag/devise/
MIT License
23.85k stars 5.53k forks source link

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

Closed togabrennan closed 9 months ago

togabrennan commented 9 months ago

Environment

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 commented 9 months ago

Fixed via https://github.com/heartcombo/devise/commit/f8f035155b9e00e6c6f702f81955bf89dfdb4a60 Ref: https://github.com/heartcombo/devise/pull/5628