We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
cache_format
1 parent 36c0347 commit 4e6228fCopy full SHA for 4e6228f
test/cases/railtie_test.rb
@@ -16,7 +16,13 @@ def setup
16
@app.config.eager_load = false
17
@app.config.logger = Logger.new(nil)
18
@app.config.secret_key_base = ('x' * 30)
19
- @app.config.active_support.cache_format_version = Rails::VERSION::STRING.to_f
+ # Rails supports `cache_format` up to `7.1`.
20
+ # https://github.com/rails/rails/blob/aa66aece44f191e6330c04ce4942c3edf31d85d7/activesupport/lib/active_support/cache.rb#L800-L809
21
+ @app.config.active_support.cache_format_version = if Rails::VERSION::STRING.to_f < 8
22
+ Rails::VERSION::STRING.to_f
23
+ else
24
+ 7.1
25
+ end
26
end
27
28
test 'GlobalID.app for Blog::Application defaults to blog' do
0 commit comments