Skip to content

Commit

Permalink
Use rails 7 cache format as 7 can read either 6 or 7
Browse files Browse the repository at this point in the history
  • Loading branch information
jrafanie committed Sep 26, 2024
1 parent 9637774 commit 7838a74
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,13 @@ class Application < Rails::Application
#
# https://bugs.ruby-lang.org/issues/14372
#

# TODO: Remove this once we move to config.load_defaults 7.0 as this is the default.
# Note, rails 7 can read cache format from 6 or 7 so there is no risk if you're running rails 7.
# See: https://guides.rubyonrails.org/upgrading_ruby_on_rails.html#new-activesupport-cache-serialization-format
warn "Warning: Remove redundant config.active_support.cache_format_version = 7.0 from #{__FILE__}:#{__LINE__ + 1} if using config.load_defaults 7.0" if config.active_support.cache_format_version == 7.0
config.active_support.cache_format_version = 7.0

config.autoload_paths << Rails.root.join("app/models/aliases").to_s
config.autoload_paths << Rails.root.join("app/models/mixins").to_s
config.autoload_paths << Rails.root.join("lib").to_s
Expand Down

0 comments on commit 7838a74

Please sign in to comment.