mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
5b9cd1a579
When a job was just deserialized `arguments` is `nil` and the serialized arguments are in the `@serialized_arguments` variable. If we try to serialize this job again the arguments are going to be `nil` instead of what was serialized. The test we had was not checking this case because it was deserializing the job in the same object that had the arguments. To fix this, when the `@serialized_arguments` are present we return it instead of the result of the `arguments` serialized. |
||
---|---|---|
.. | ||
active_job | ||
rails/generators/job | ||
active_job.rb |