From 4ca5aff9f0a050d3be9e22c805d30acbb7253c63 Mon Sep 17 00:00:00 2001 From: Jean Boussier Date: Sat, 12 Feb 2022 09:54:41 +0100 Subject: [PATCH] Add missing `bigdecimal` require in `ActiveJob::Arguments` Fix: https://github.com/rails/rails/issues/44399 Could cause `uninitialized constant ActiveJob::Arguments::BigDecimal (NameError)` when loading Active Job in isolation. --- activejob/CHANGELOG.md | 7 +++++++ activejob/lib/active_job/arguments.rb | 1 + 2 files changed, 8 insertions(+) diff --git a/activejob/CHANGELOG.md b/activejob/CHANGELOG.md index c2ed0989f3d..11a2922ce1c 100644 --- a/activejob/CHANGELOG.md +++ b/activejob/CHANGELOG.md @@ -1,3 +1,10 @@ +* Add missing `bigdecimal` require in `ActiveJob::Arguments` + + Could cause `uninitialized constant ActiveJob::Arguments::BigDecimal (NameError)` + when loading Active Job in isolation. + + *Jean Boussier* + * Allow testing `discard_on/retry_on ActiveJob::DeserializationError` Previously in `perform_enqueued_jobs`, `deserialize_arguments_if_needed` diff --git a/activejob/lib/active_job/arguments.rb b/activejob/lib/active_job/arguments.rb index bba3d5392c8..2fc3a510264 100644 --- a/activejob/lib/active_job/arguments.rb +++ b/activejob/lib/active_job/arguments.rb @@ -1,5 +1,6 @@ # frozen_string_literal: true +require "bigdecimal" require "active_support/core_ext/hash" module ActiveJob