Skip to content

Commit 4e08daf

Browse files
byrootetiennebarrie
authored andcommitted
lobsters & shipit: Dynamically use latest Rails defaults
1 parent 6c7bc07 commit 4e08daf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

benchmarks/lobsters/config/application.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
module Lobsters
2222
class Application < Rails::Application
2323
# Initialize configuration defaults for originally generated Rails version.
24-
config.load_defaults 8.0
24+
config.load_defaults "#{Rails::VERSION::MAJOR}.#{Rails::VERSION::MINOR}"
2525

2626
# Please, add to the `ignore` list any other `lib` subdirectories that do
2727
# not contain `.rb` files, or that should not be reloaded or eager loaded.

benchmarks/shipit/config/application.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ module Shipit
2222
class Application < Rails::Application
2323
Pubsubstub.use_persistent_connections = false
2424
# Initialize configuration defaults for originally generated Rails version.
25-
config.load_defaults 8.0
25+
config.load_defaults "#{Rails::VERSION::MAJOR}.#{Rails::VERSION::MINOR}"
2626

2727
config.active_job.queue_adapter = :test
2828

0 commit comments

Comments
 (0)