From d81fea31b696a530def89b6528994d42eaabbb74 Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Wed, 20 Dec 2023 00:16:55 -0500 Subject: [PATCH] Use railties for version gates --- lib/combustion.rb | 2 +- lib/combustion/application.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/combustion.rb b/lib/combustion.rb index 60fc415..ca7e3f7 100644 --- a/lib/combustion.rb +++ b/lib/combustion.rb @@ -30,7 +30,7 @@ module Configurations AVAILABLE_MODULES = begin keys = MODULES.keys - rails_gate = VersionGate.new("rails") + rails_gate = VersionGate.new("railties") keys.delete(:sprockets) unless rails_gate.call(">= 3.1", "< 7.0") keys.delete(:active_job) unless rails_gate.call(">= 4.2") diff --git a/lib/combustion/application.rb b/lib/combustion/application.rb index 515ffab..bee0748 100644 --- a/lib/combustion/application.rb +++ b/lib/combustion/application.rb @@ -13,7 +13,7 @@ class Application < Rails::Application Combustion::Configurations::ActiveStorage ].freeze - rails_gate = VersionGate.new("rails") + rails_gate = VersionGate.new("railties") # Core Settings config.cache_classes = true