Fixing Rails.application.secrets deprecation warning

Fixing Rails.application.secrets deprecation warning

I kept hitting the following error in Rails 7. After some digging, the issue is tied to Devise.

DEPRECATION WARNING: `Rails.application.secrets` is deprecated in favor of `Rails.application.credentials` and will be removed in Rails 7.2. 

To fix the error, I had to modify the config file in the config/initializers/devise.rb file by adding the following line:

config.secret_key = Rails.application.secret_key_base