Skip to content

Commit 83a1cff

Browse files
authored
Merge pull request rails#51505 from p8/activejob/improve-enqueue-after-commit-changelog
Update `enqueue_after_transaction_commit` changelog [ci-skip]
2 parents 2b9366a + 52f37c4 commit 83a1cff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

activejob/CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@
1414
Now Active Job will automatically defer the enqueuing to after the transaction is committed,
1515
and drop the job if the transaction is rolled back.
1616

17-
Various queue implementations can chose to disable this behavior, and users can disable it,
17+
Various queue implementations can choose to disable this behavior, and users can disable it,
1818
or force it on a per job basis:
1919

2020
```ruby
2121
class NewTopicNotificationJob < ApplicationJob
22-
self.enqueue_after_transaction_commit = false # or `true`
22+
self.enqueue_after_transaction_commit = :never # or `:always` or `:default`
2323
end
2424
```
2525

0 commit comments

Comments
 (0)