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 authored and pat committed Jan 14, 2024
1 parent 30cb9bb commit d81fea3
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 d81fea3

Please sign in to comment.