A platform for community discussion. Free, open, simple.
DEV: Stringify keys of nested hashes in job arguments (#15850)
David Taylor15cff27bfec8
diff --git a/app/jobs/base.rb b/app/jobs/base.rbindex 0693fb9bbdc..29db06c99fe 100644--- a/app/jobs/base.rb+++ b/app/jobs/base.rb@@ -298,7 +298,7 @@ module Jobs# Only string keys are allowed in JSON. We call `.with_indifferent_access`# in Jobs::Base#perform, so this is invisible to developers- opts = opts.stringify_keys+ opts = opts.deep_stringify_keys# Simulate the args being dumped/parsed through JSONparsed_opts = JSON.parse(JSON.dump(opts))