diff options
author | Mauro George <maurogot@gmail.com> | 2015-07-02 19:52:44 -0300 |
---|---|---|
committer | Mauro George <maurogot@gmail.com> | 2015-07-08 18:22:32 -0300 |
commit | 5e2273f42ce2382023f90fe4f0fbceec5c3416d5 (patch) | |
tree | 072b50bab40317fd9cd461114838db569966d62c | |
parent | cc7ef0cf19d9818c6772e77ca4a8d350688b44e8 (diff) | |
download | rails-5e2273f42ce2382023f90fe4f0fbceec5c3416d5.tar.gz rails-5e2273f42ce2382023f90fe4f0fbceec5c3416d5.tar.bz2 rails-5e2273f42ce2382023f90fe4f0fbceec5c3416d5.zip |
Add Deserialization section on guides at ActiveJob Exception
[ci skip]
-rw-r--r-- | guides/source/active_job_basics.md | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/guides/source/active_job_basics.md b/guides/source/active_job_basics.md index 22f3c0146a..dd545b56f5 100644 --- a/guides/source/active_job_basics.md +++ b/guides/source/active_job_basics.md @@ -330,6 +330,13 @@ class GuestsCleanupJob < ActiveJob::Base end ``` +### Deserialization + +GlobalID allows serializing full Active Record objects passed to `#perform`. + +If a passed record is deleted after the job is enqueued but before the `#perform` +method is called Active Job will raise an `ActiveJob::DeserializationError` +exception. Job Testing -------------- |