2
0

Rails 7.1 update (#25963)

This commit is contained in:
Matt Jankowski
2023-10-23 13:58:29 -04:00
committed by GitHub
parent 379115e601
commit e93a75f1a1
13 changed files with 122 additions and 89 deletions

View File

@@ -2,7 +2,7 @@
class CacheBuster
def initialize(options = {})
ActiveSupport::Deprecation.warn('Default values for the cache buster secret header name and values will be removed in Mastodon 4.3. Please set them explicitely if you rely on those.') unless options[:http_method] || (options[:secret] && options[:secret_header])
Rails.application.deprecators[:mastodon].warn('Default values for the cache buster secret header name and values will be removed in Mastodon 4.3. Please set them explicitely if you rely on those.') unless options[:http_method] || (options[:secret] && options[:secret_header])
@secret_header = options[:secret_header] ||
(options[:http_method] ? nil : 'Secret-Header')