DEV: Stringify keys of nested hashes in job arguments (#15850)

This provides symmetry with the `.with_indifferent_access` usage in `Jobs#perform`, which is also recursive.
This commit is contained in:
David Taylor 2022-02-07 20:28:45 +00:00 committed by GitHub
parent ecd88e9abb
commit 15cff27bfe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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 JSON
parsed_opts = JSON.parse(JSON.dump(opts))