Skip to content

Commit

Permalink
Add a note about ActiveJob callbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
albus522 committed Feb 18, 2019
1 parent b0adf2c commit 460018e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,9 @@ Hooks
=====
You can define hooks on your job that will be called at different stages in the process:


**NOTE:** If you are using ActiveJob these hooks are **not** available to your jobs. You will need to use ActiveJob's callbacks. You can find details here https://guides.rubyonrails.org/active_job_basics.html#callbacks

```ruby
class ParanoidNewsletterJob < NewsletterJob
def enqueue(job)
Expand Down

0 comments on commit 460018e

Please sign in to comment.