From 4917ee9df6c199e97f5e62de31df5c9fb8a14582 Mon Sep 17 00:00:00 2001 From: Jonathan Hefner Date: Wed, 8 Dec 2021 11:31:49 -0600 Subject: [PATCH] Use dynamic Rails version in framework dummy apps This matches what we currently generate for plugin dummy apps. --- actionmailbox/test/dummy/config/application.rb | 2 +- actiontext/test/dummy/config/application.rb | 2 +- activestorage/test/dummy/config/application.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/actionmailbox/test/dummy/config/application.rb b/actionmailbox/test/dummy/config/application.rb index 82767f7614..797f6e31f3 100644 --- a/actionmailbox/test/dummy/config/application.rb +++ b/actionmailbox/test/dummy/config/application.rb @@ -7,7 +7,7 @@ Bundler.require(*Rails.groups) module Dummy class Application < Rails::Application # Initialize configuration defaults for originally generated Rails version. - config.load_defaults 7.1 + config.load_defaults Rails::VERSION::STRING.to_f # Settings in config/environments/* take precedence over those specified here. # Application configuration can go into files in config/initializers diff --git a/actiontext/test/dummy/config/application.rb b/actiontext/test/dummy/config/application.rb index ba39c6d79b..e8f6f48c1b 100644 --- a/actiontext/test/dummy/config/application.rb +++ b/actiontext/test/dummy/config/application.rb @@ -8,7 +8,7 @@ require "action_text" module Dummy class Application < Rails::Application # Initialize configuration defaults for originally generated Rails version. - config.load_defaults 7.1 + config.load_defaults Rails::VERSION::STRING.to_f # Settings in config/environments/* take precedence over those specified here. # Application configuration can go into files in config/initializers diff --git a/activestorage/test/dummy/config/application.rb b/activestorage/test/dummy/config/application.rb index a410ef4768..8436c7f470 100644 --- a/activestorage/test/dummy/config/application.rb +++ b/activestorage/test/dummy/config/application.rb @@ -15,7 +15,7 @@ Bundler.require(*Rails.groups) module Dummy class Application < Rails::Application - config.load_defaults 7.1 + config.load_defaults Rails::VERSION::STRING.to_f config.active_storage.service = :local end