From c9897263136d6578dc14935b7531edaadfd433fb Mon Sep 17 00:00:00 2001 From: evazion Date: Wed, 9 Mar 2022 00:24:36 -0600 Subject: [PATCH] rails: enable `remove_deprecated_time_with_zone_name`. Fix this deprecation warning: DEPRECATION WARNING: ActiveSupport::TimeWithZone.name has been deprecated and from Rails 7.1 will use the default Ruby implementation. You can set `config.active_support.remove_deprecated_time_with_zone_name = true` to enable the new behavior now. Triggered by the XML serializer in the API. --- config/initializers/new_framework_defaults_7_0.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/initializers/new_framework_defaults_7_0.rb b/config/initializers/new_framework_defaults_7_0.rb index 69617923c..17d7767c2 100644 --- a/config/initializers/new_framework_defaults_7_0.rb +++ b/config/initializers/new_framework_defaults_7_0.rb @@ -32,7 +32,7 @@ Rails.application.config.action_view.apply_stylesheet_media_default = false # Don't override ActiveSupport::TimeWithZone.name and use the default Ruby # implementation. -# Rails.application.config.active_support.remove_deprecated_time_with_zone_name = true +Rails.application.config.active_support.remove_deprecated_time_with_zone_name = true # Change the format of the cache entry. # Changing this default means that all new cache entries added to the cache