1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Use ApplicationJob instead of ActiveJob::Base in guide [ci skip]

This commit is contained in:
Yoshiyuki Hirano 2017-09-18 22:15:46 +09:00
parent 3d7d1e2165
commit 9291a81369

View file

@ -395,7 +395,7 @@ It's also possible to retry or discard a job if an exception is raised during ex
For example:
```ruby
class RemoteServiceJob < ActiveJob::Base
class RemoteServiceJob < ApplicationJob
retry_on CustomAppException # defaults to 3s wait, 5 attempts
discard_on ActiveJob::DeserializationError