0
0
Fork 0

Rails 7 update (#24241)

This commit is contained in:
Matt Jankowski 2023-07-02 04:38:53 -04:00 committed by GitHub
parent 4fe2d7cb59
commit 50c2a03695
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
22 changed files with 242 additions and 144 deletions

View file

@ -57,7 +57,15 @@ require_relative '../lib/mastodon/redis_config'
module Mastodon
class Application < Rails::Application
# Initialize configuration defaults for originally generated Rails version.
config.load_defaults 6.1
config.load_defaults 7.0
# TODO: Release a version which uses the 7.0 defaults as specified above,
# but preserves the 6.1 cache format as set below. In a subsequent change,
# remove this line setting to 6.1 cache format, and then release another version.
# https://guides.rubyonrails.org/upgrading_ruby_on_rails.html#new-activesupport-cache-serialization-format
# https://github.com/mastodon/mastodon/pull/24241#discussion_r1162890242
config.active_support.cache_format_version = 6.1
config.add_autoload_paths_to_load_path = false
# Settings in config/environments/* take precedence over those specified here.