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 0426b98
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/combustion/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ class Application < Rails::Application

rails_gate = VersionGate.new("railties")

if rails_gate.call(">= 7.2.0.alpha")
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 0426b98

Please sign in to comment.