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.
This commit is contained in:
evazion
2022-03-09 00:24:36 -06:00
parent ec190a2d10
commit c989726313

View File

@@ -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 # Don't override ActiveSupport::TimeWithZone.name and use the default Ruby
# implementation. # 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. # Change the format of the cache entry.
# Changing this default means that all new cache entries added to the cache # Changing this default means that all new cache entries added to the cache