From 2f02a98fafb8dffeb3e6439938b623592bb13816 Mon Sep 17 00:00:00 2001 From: Arne De Herdt Date: Tue, 12 Nov 2024 11:52:36 +0100 Subject: [PATCH] Throw in some Rails 7.1 configuration. --- config/application.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config/application.rb b/config/application.rb index 1d257121b1cb9..804bccfb44fa2 100644 --- a/config/application.rb +++ b/config/application.rb @@ -40,12 +40,15 @@ class Application < Rails::Application config.paths['log'] = "#{Msf::Config.log_directory}/#{Rails.env}.log" config.paths['config/database'] = [Metasploit::Framework::Database.configurations_pathname.try(:to_path)] config.autoloader = :zeitwerk + config.load_defaults = 7.1 + config.active_support.cache_format_version = 7.1 case Rails.env when "development" config.eager_load = false when "test" config.eager_load = false + config.enable_reloading = false when "production" config.eager_load = false end