Skip to content

Commit

Permalink
Load defaults for Rails 5.1+
Browse files Browse the repository at this point in the history
  • Loading branch information
ankane committed Mar 29, 2024
1 parent da55de7 commit 2c0a2bd
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("rails")

if rails_gate.call(">= 5.1")
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 2c0a2bd

Please sign in to comment.