mirror of https://github.com/rails/rails
Merge pull request #35873 from prathamesh-sonpatki/enqueuing-fixes
Fix the deprecation warning about `config.active_job.return_false_on_aborted_enqueue`
This commit is contained in:
commit
8c6fedffa1
|
@ -67,7 +67,7 @@ module ActiveJob
|
||||||
false
|
false
|
||||||
else
|
else
|
||||||
ActiveSupport::Deprecation.warn(
|
ActiveSupport::Deprecation.warn(
|
||||||
"Rails 6.0 will return false when the enqueuing is aborted. Make sure your code doesn't depend on it" \
|
"Rails 6.1 will return false when the enqueuing is aborted. Make sure your code doesn't depend on it" \
|
||||||
" returning the instance of the job and set `config.active_job.return_false_on_aborted_enqueue = true`" \
|
" returning the instance of the job and set `config.active_job.return_false_on_aborted_enqueue = true`" \
|
||||||
" to remove the deprecations."
|
" to remove the deprecations."
|
||||||
)
|
)
|
||||||
|
|
|
@ -784,7 +784,7 @@ There are a few configuration options available in Active Support:
|
||||||
|
|
||||||
* `config.active_job.custom_serializers` allows to set custom argument serializers. Defaults to `[]`.
|
* `config.active_job.custom_serializers` allows to set custom argument serializers. Defaults to `[]`.
|
||||||
|
|
||||||
* `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`.
|
* `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`.
|
||||||
|
|
||||||
### Configuring Action Cable
|
### Configuring Action Cable
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue