rails/rails — pull request #18260 by isaacseymour (2014-12-30 18:36:00+00:00)
Title: ActiveJob: delegate deserialization to the job class

Renames `ActiveJob::Base.deserialize` to `ActiveJob::Base.instantitate_from_job_data` (not convinced this is a good name), and delegates full deserialization to `ActiveJob::Base#deserialize`. This allows subclasses to override `ActiveJob::Base#deserialize` (they can already override `#serialize`) to attach metadata to the job. Without this, the only way to attach metadata to a job and retrieve it is by monkey-patching `ActiveJob::Base.deserialize` :see_no_evil: