We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e7483ba + 6f26282 commit d1aa6afCopy full SHA for d1aa6af
guides/source/active_job_basics.md
@@ -79,6 +79,23 @@ end
79
80
Note that you can define `perform` with as many arguments as you want.
81
82
+If you already have an abstract class and its name differs from `ApplicationJob`, you can pass
83
+the `--parent` option to indicate you want a different abstract class:
84
+
85
+```bash
86
+$ bin/rails generate job process_payment --parent=payment_job
87
+```
88
89
+```ruby
90
+class ProcessPaymentJob < PaymentJob
91
+ queue_as :default
92
93
+ def perform(*args)
94
+ # Do something later
95
+ end
96
+end
97
98
99
### Enqueue the Job
100
101
Enqueue a job using [`perform_later`][] and, optionally, [`set`][]. Like so:
0 commit comments