From 77b8f37e17759e8541f94104be1bd982e924ad6b Mon Sep 17 00:00:00 2001 From: Russell Garner Date: Thu, 9 Jan 2025 11:30:48 +0000 Subject: [PATCH] Rails 7.0: remove initializer and commit to 7.0 defaults All previous commits build and we have rationale for each change; switch over to 7.0 fully. --- config/application.rb | 5 +- .../new_framework_defaults_7_0.rb | 97 ------------------- 2 files changed, 1 insertion(+), 101 deletions(-) delete mode 100644 config/initializers/new_framework_defaults_7_0.rb diff --git a/config/application.rb b/config/application.rb index ce710089a..e8e3cb69d 100644 --- a/config/application.rb +++ b/config/application.rb @@ -37,10 +37,7 @@ class Application < Rails::Application end # Initialize configuration defaults for originally generated Rails version. - config.load_defaults 6.1 - # TODO: remove the following block of lines when the above line is set to `config.load_defaults 7.0` - config.active_support.cache_format_version = 7.0 - config.active_support.disable_to_s_conversion = true # See https://guides.rubyonrails.org/configuring.html#config-active-support-disable-to-s-conversion for more information. + config.load_defaults 7.0 # Settings in config/environments/* take precedence over those specified here. # Application configuration can go into files in config/initializers diff --git a/config/initializers/new_framework_defaults_7_0.rb b/config/initializers/new_framework_defaults_7_0.rb deleted file mode 100644 index e089f711d..000000000 --- a/config/initializers/new_framework_defaults_7_0.rb +++ /dev/null @@ -1,97 +0,0 @@ -# Be sure to restart your server when you modify this file. -# -# This file eases your Rails 7.0 framework defaults upgrade. -# -# Uncomment each configuration one by one to switch to the new default. -# Once your application is ready to run with all new defaults, you can remove -# this file and set the `config.load_defaults` to `7.0`. -# -# Read the Guide for Upgrading Ruby on Rails for more info on each option. -# https://guides.rubyonrails.org/upgrading_ruby_on_rails.html - -# `button_to` view helper will render `