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: `Rails.application.secrets` is deprecated in favor of `Rails.application.credentials` and will be removed in Rails 7.2. #5648

Closed issei-m closed 8 months ago

issei-m commented 9 months ago

Triggered at https://github.com/heartcombo/devise/blob/e2242a95f3bb2e68ec0e9a064238ff7af6429545/lib/devise/secret_key_finder.rb#L12

In our application, we don't use credentials since all credentials, including the secret key base, are sourced from environment variables. In such cases, this deprecation notice gets triggered.

pil0u commented 8 months ago

Likely a dupe for #5644

issei-m commented 8 months ago

@pil0u Indeed. Thank you for pointing that out!