From 5859ea4a23c58e18f5b03a509fe64ec7ede80284 Mon Sep 17 00:00:00 2001 From: Colin Darie Date: Thu, 22 Aug 2024 17:37:09 +0200 Subject: [PATCH] chore: load rails 7.0 defaults --- config/application.rb | 2 +- config/initializers/active_storage.rb | 1 + .../new_framework_defaults_7_0.rb | 135 ------------------ 3 files changed, 2 insertions(+), 136 deletions(-) delete mode 100644 config/initializers/new_framework_defaults_7_0.rb diff --git a/config/application.rb b/config/application.rb index 91b363d40..b57986388 100644 --- a/config/application.rb +++ b/config/application.rb @@ -13,7 +13,7 @@ Dotenv::Railtie.load module TPS class Application < Rails::Application # Initialize configuration defaults for originally generated Rails version. - config.load_defaults 6.1 + config.load_defaults 7.0 # Configuration for the application, engines, and railties goes here. # diff --git a/config/initializers/active_storage.rb b/config/initializers/active_storage.rb index f35c5e36b..620e3f022 100644 --- a/config/initializers/active_storage.rb +++ b/config/initializers/active_storage.rb @@ -2,6 +2,7 @@ Rails.application.config.active_storage.service_urls_expire_in = 1.hour +Rails.application.config.active_storage.variant_processor = :mini_magick Rails.application.config.active_storage.analyzers.delete ActiveStorage::Analyzer::ImageAnalyzer Rails.application.config.active_storage.analyzers.delete ActiveStorage::Analyzer::VideoAnalyzer 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 ad3d94df8..000000000 --- a/config/initializers/new_framework_defaults_7_0.rb +++ /dev/null @@ -1,135 +0,0 @@ -# frozen_string_literal: true - -# 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 `