Skip to content

Commit

Permalink
Load defaults for Rails 7.2+
Browse files Browse the repository at this point in the history
  • Loading branch information
ankane committed Mar 29, 2024
1 parent c2b32b2 commit 5e0e5a8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/combustion/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ class Application < Rails::Application

rails_gate = VersionGate.new("railties")

if rails_gate.call("~> 7.2.0.alpha")
puts "boom"
config.load_defaults Rails::VERSION::STRING.to_f
end

# Core Settings
config.cache_classes = true
config.consider_all_requests_local = true
Expand Down

0 comments on commit 5e0e5a8

Please sign in to comment.