Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
benngarcia authored Oct 4, 2022
1 parent 32ea363 commit 7c2454b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ class User
# logic...
end
async :example_method

or...

async def example_method2
# logic...
end
end
```
This will give you access to ```user_instance.async_example_method```, which when called will use ActiveJob's API to create an ActiveJob with your backend of choice and call the example_method when the job is ran.
Expand Down

0 comments on commit 7c2454b

Please sign in to comment.