From 5db773e44f4c1e8914a7a82e17dc6099a44abfa8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Mon, 15 Apr 2024 15:02:25 +0200 Subject: [PATCH] Serialize message data and metadata together This is the new default option, and its only dangerous when deploying to applications with multiple servers. Since this isn't our case, we can enable it. --- config/initializers/new_framework_defaults_7_1.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/initializers/new_framework_defaults_7_1.rb b/config/initializers/new_framework_defaults_7_1.rb index eca6cac20..7ac88e74f 100644 --- a/config/initializers/new_framework_defaults_7_1.rb +++ b/config/initializers/new_framework_defaults_7_1.rb @@ -141,7 +141,7 @@ Rails.application.config.active_support.message_serializer = :json_allow_marshal # leave this optimization off on the first deploy, then enable it on a # subsequent deploy. #++ -# Rails.application.config.active_support.use_message_serializer_for_metadata = true +Rails.application.config.active_support.use_message_serializer_for_metadata = true ### # Set the maximum size for Rails log files.