Skip to content

Commit

Permalink
Throw in some Rails 7.1 configuration.
Browse files Browse the repository at this point in the history
  • Loading branch information
adeherdt-r7 committed Nov 12, 2024
1 parent de1ec3b commit 2f02a98
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2f02a98

Please sign in to comment.