1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activejob/lib
Rafael Mendonça França 5b9cd1a579
Make sure that when serialing an just deserialized job arguments are there
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.
2018-05-01 13:33:50 -04:00
..
active_job Make sure that when serialing an just deserialized job arguments are there 2018-05-01 13:33:50 -04:00
rails/generators/job Strip duplicated suffixes more strictly 2018-04-22 14:30:07 +09:00
active_job.rb Introduce serializers to ActiveJob 2018-02-14 13:10:07 -05:00