From 6fb12d70836f90d9e9091509719bf6df73a4d511 Mon Sep 17 00:00:00 2001 From: Will Cosgrove Date: Tue, 30 Jul 2024 23:11:03 -0500 Subject: [PATCH] Fix load_defaults rubocop autocorrection --- test/dummy/config/application.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/dummy/config/application.rb b/test/dummy/config/application.rb index 6e7d337..09e69e3 100644 --- a/test/dummy/config/application.rb +++ b/test/dummy/config/application.rb @@ -13,7 +13,7 @@ class Application < Rails::Application config.autoload_paths << "#{root}/app/views" config.autoload_paths << "#{root}/app/views/layouts" config.autoload_paths << "#{root}/app/views/components" - config.load_defaults Float(Rails::VERSION::STRING) + config.load_defaults "#{Rails::VERSION::MAJOR}.#{Rails::VERSION::MINOR}" # Please, add to the `ignore` list any other `lib` subdirectories that do # not contain `.rb` files, or that should not be reloaded or eager loaded.