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:
parent
ecd88e9abb
commit
15cff27bfe
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue