diff options
author | Kir Shatrov <shatrov@me.com> | 2018-09-26 17:25:20 +0100 |
---|---|---|
committer | Kir Shatrov <shatrov@me.com> | 2018-10-28 15:02:44 -0400 |
commit | ee9fc120242b83c64bf77af1b72082ac76319332 (patch) | |
tree | 7b9fef67646c221c85c71be236d8bd50ffa2c7e4 /railties/lib | |
parent | 3295e23755744b7f9426d752481bb928fb02a89e (diff) | |
download | rails-ee9fc120242b83c64bf77af1b72082ac76319332.tar.gz rails-ee9fc120242b83c64bf77af1b72082ac76319332.tar.bz2 rails-ee9fc120242b83c64bf77af1b72082ac76319332.zip |
Make AJ::Base#enqueue return false if the job wasn't enqueued
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/rails/generators/rails/app/templates/config/initializers/new_framework_defaults_6_0.rb.tt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/railties/lib/rails/generators/rails/app/templates/config/initializers/new_framework_defaults_6_0.rb.tt b/railties/lib/rails/generators/rails/app/templates/config/initializers/new_framework_defaults_6_0.rb.tt index 54eb0cb1d2..5cca8ae570 100644 --- a/railties/lib/rails/generators/rails/app/templates/config/initializers/new_framework_defaults_6_0.rb.tt +++ b/railties/lib/rails/generators/rails/app/templates/config/initializers/new_framework_defaults_6_0.rb.tt @@ -15,3 +15,6 @@ # This option is not backwards compatible with earlier Rails versions. # It's best enabled when your entire app is migrated and stable on 6.0. # Rails.application.config.action_dispatch.use_cookies_with_metadata = true + +# Return false instead of self when #enqueue method was aborted from the callback +Rails.application.config.active_job.return_false_on_aborted_enqueue = true |