Skip to content

Commit

Permalink
Use railties for version gates
Browse files Browse the repository at this point in the history
  • Loading branch information
ankane committed Dec 20, 2023
1 parent da55de7 commit 6093174
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/combustion.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion lib/combustion/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6093174

Please sign in to comment.