From e45dc5d45a17c6657a31b0ef2088b98e5a24554f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Mon, 15 Apr 2024 13:54:35 +0200 Subject: [PATCH] Use BigDecimal argument serializer in Active Job This option won't even exist in Rails 7.2 [1], and the possibility to disable it was only added to guarantee safe upgrades in Rails applications with multiple replicas [2]. Since we don't have applications with multiple replicas, where one replica could be using Active Job 7.0 and another one could be using Active Job 7.1 while upgrading, we can enable this options. [1] Commit 2a761d23d2 in https://github.com/rails/rails [2] Commit bc1f323338 in https://github.com/rails/rails --- 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 19993439f..7a45f6d21 100644 --- a/config/initializers/new_framework_defaults_7_1.rb +++ b/config/initializers/new_framework_defaults_7_1.rb @@ -83,7 +83,7 @@ Rails.application.config.active_record.allow_deprecated_singular_associations_na # serializer. Therefore, this setting should only be enabled after all replicas # have been successfully upgraded to Rails 7.1. #++ -# Rails.application.config.active_job.use_big_decimal_serializer = true +Rails.application.config.active_job.use_big_decimal_serializer = true ### # Specify if an `ArgumentError` should be raised if `Rails.cache` `fetch` or