Envek / Envek/after_commit_everywhere
Add `perform_after_commit` to ActiveJob jobs?
Open
- Dominant language
- Ruby
- Stars
- 789
- Forks
- 23
- PR merge metrics
- No merged PRs in 30d
Description
Since it is a common use to use `after_commit` around ActiveJob calls (like in #19), would it make sense to add to this gem a `perform_after_commit` method to all ActiveJob jobs?
I use the following concern in my app:
```rb
module AfterCommitableJob
extend ActiveSupport::Concern
class_methods do
def perform_after_commit(...)
AfterCommitEverywhere.after_commit do
perform_later(...)
end
end
end
end
```
Would more people benefit from including this in `after_commit_everywhere` directly?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.