Skip to content

Commit 8c6fedf

Browse files
authored
Merge pull request rails#35873 from prathamesh-sonpatki/enqueuing-fixes
Fix the deprecation warning about `config.active_job.return_false_on_aborted_enqueue`
2 parents 969f2c1 + c35f7b5 commit 8c6fedf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

activejob/lib/active_job/enqueuing.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def enqueue(options = {})
6767
false
6868
else
6969
ActiveSupport::Deprecation.warn(
70-
"Rails 6.0 will return false when the enqueuing is aborted. Make sure your code doesn't depend on it" \
70+
"Rails 6.1 will return false when the enqueuing is aborted. Make sure your code doesn't depend on it" \
7171
" returning the instance of the job and set `config.active_job.return_false_on_aborted_enqueue = true`" \
7272
" to remove the deprecations."
7373
)

guides/source/configuring.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -784,7 +784,7 @@ There are a few configuration options available in Active Support:
784784

785785
* `config.active_job.custom_serializers` allows to set custom argument serializers. Defaults to `[]`.
786786

787-
* `config.active_job.return_false_on_aborted_enqueue` change the return value of `#enqueue` to false instead of the job instance when the enqueuing is aborted. Defaults to `false`.
787+
* `config.active_job.return_false_on_aborted_enqueue` change the return value of `#enqueue` to false instead of the job instance when the enqueuing is aborted. Defaults to `true`.
788788

789789
### Configuring Action Cable
790790

0 commit comments

Comments
 (0)