I’m getting the following deprecation warning:
DEPRECATION WARNING: `Rails.application.secrets` is deprecated in favor of `Rails.application.credentials` and will be removed in Rails 7.2. (called from <top (required)> at /.../config/environment.rb:7)
However, I stopped using secrets or encrypted credentials long ago. Now everything is passed at runtime and I do not store anything secret in the repository. The offending line in config/environment.rb:7
is just loading the rails app:
# frozen_string_literal: true
# Load the Rails application.
require_relative 'application'
# Initialize the Rails application.
Rails.application.initialize! # <-- this is line 7
So, Rails.application.initialize!
is producing the warning. Is there something I should look at that will stop working in Rails 7.2 or should I ignore this warning?