diff --git a/config/application.rb b/config/application.rb index 0c19b18c8..872130418 100644 --- a/config/application.rb +++ b/config/application.rb @@ -30,6 +30,10 @@ module Consul # and you have no plans to rollback. config.active_support.cache_format_version = 7.0 + # Disables the deprecated #to_s override in some Ruby core classes + # See https://guides.rubyonrails.org/configuring.html#config-active-support-disable-to-s-conversion for more information. + config.active_support.disable_to_s_conversion = true + # Keep belongs_to fields optional by default, because that's the way # Rails 4 models worked config.active_record.belongs_to_required_by_default = false diff --git a/config/initializers/new_framework_defaults_7_0.rb b/config/initializers/new_framework_defaults_7_0.rb index 8ffa00cba..3d86cc89c 100644 --- a/config/initializers/new_framework_defaults_7_0.rb +++ b/config/initializers/new_framework_defaults_7_0.rb @@ -108,8 +108,3 @@ Rails.application.config.action_dispatch.return_only_request_media_type_on_conte # Thus, to support submitting an empty collection, the `file_field` helper will render an hidden field `include_hidden` by default when `multiple_file_field_include_hidden` is set to `true`. # See https://guides.rubyonrails.org/configuring.html#config-active-storage-multiple-file-field-include-hidden for more information. Rails.application.config.active_storage.multiple_file_field_include_hidden = true - -# ** Please read carefully, this must be configured in config/application.rb (NOT this file) ** -# Disables the deprecated #to_s override in some Ruby core classes -# See https://guides.rubyonrails.org/configuring.html#config-active-support-disable-to-s-conversion for more information. -# config.active_support.disable_to_s_conversion = true