Skip to content

Commit ed467f4

Browse files
committed
Silence deprecation about cache format
1 parent 4eaf3b1 commit ed467f4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

example_app_generator/spec/support/default_preview_path

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ require_file_stub 'config/environment' do
3737
module ExampleApp
3838
class Application < Rails::Application
3939
config.eager_load = false
40+
if Rails::VERSION::STRING.start_with?('7')
41+
config.active_support.cache_format_version = 7.0
42+
end
4043

4144
# Don't care if the mailer can't send.
4245
config.action_mailer.raise_delivery_errors = false unless ENV['NO_ACTION_MAILER']

0 commit comments

Comments
 (0)