Silence deprecation warnings via `config.active_support.report_deprecations = false` in Rails 7
With Rails 7, instead of an early return in !92557 (diffs) we can use config.active_support.report_deprecations = false
for production
environment to efficiently silence deprecation warnings.
When GITLAB_LOG_DEPRECATIONS=1
is set we should skip config.active_support.report_deprecations = false
. See https://gitlab.com/gitlab-org/gitlab/-/blob/master/config/initializers/0_log_deprecations.rb.
Refs
Edited by Peter Leitzen