From: Andy Allan Date: Wed, 16 Nov 2022 15:29:30 +0000 (+0000) Subject: Use rails 7.0 configuration defaults X-Git-Tag: live~1464^2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/aab33eee8701be8a10d3446d36f5ad689228a236 Use rails 7.0 configuration defaults All the entries in the new framework defaults were enabled a while ago, apart from the cookies serializer which is already defined in config/initializers/cookies_serializer.rb --- diff --git a/config/application.rb b/config/application.rb index b801c8b5f..22c130c99 100644 --- a/config/application.rb +++ b/config/application.rb @@ -21,7 +21,7 @@ Bundler.require(*Rails.groups) module OpenStreetMap class Application < Rails::Application # Initialize configuration defaults for originally generated Rails version. - config.load_defaults 6.1 + 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 79a3a2cf0..000000000 --- a/config/initializers/new_framework_defaults_7_0.rb +++ /dev/null @@ -1,117 +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 `