mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
[Active Job] Try to deserialize with GlobalID only strings and globalids
This commit is contained in:
parent
e2ce4c7aa3
commit
57d56aa933
1 changed files with 3 additions and 1 deletions
|
@ -56,8 +56,10 @@ module ActiveJob
|
|||
argument.map { |arg| deserialize_argument(arg) }
|
||||
when Hash
|
||||
Hash[ argument.map { |key, value| [ key, deserialize_argument(value) ] } ].with_indifferent_access
|
||||
else
|
||||
when String, GlobalID
|
||||
GlobalID::Locator.locate(argument) || argument
|
||||
else
|
||||
argument
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue