aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/application
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2018-12-05 13:37:48 -0500
committerRafael Mendonça França <rafaelmfranca@gmail.com>2018-12-05 13:52:44 -0500
commit884310fdd031ed8121944f9ea07c8b7723c4e6b6 (patch)
tree626ade08923335b89f533a2311f4cf34ea163394 /railties/lib/rails/application
parentb802e08273f899d5f3b199f7c6a4f5d514c1b0e1 (diff)
downloadrails-884310fdd031ed8121944f9ea07c8b7723c4e6b6.tar.gz
rails-884310fdd031ed8121944f9ea07c8b7723c4e6b6.tar.bz2
rails-884310fdd031ed8121944f9ea07c8b7723c4e6b6.zip
Improve deprecation message for enqueue returning false
And make sure new applications in Rails 6.0 has this config enabled. Also, improve test coverage and add a CHANGELOG entry.
Diffstat (limited to 'railties/lib/rails/application')
-rw-r--r--railties/lib/rails/application/configuration.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/railties/lib/rails/application/configuration.rb b/railties/lib/rails/application/configuration.rb
index d6f8c4f47c..f30e5d2a0f 100644
--- a/railties/lib/rails/application/configuration.rb
+++ b/railties/lib/rails/application/configuration.rb
@@ -127,6 +127,10 @@ module Rails
if respond_to?(:action_dispatch)
action_dispatch.use_cookies_with_metadata = true
end
+
+ if respond_to?(:active_job)
+ active_job.return_false_on_aborted_enqueue = true
+ end
else
raise "Unknown version #{target_version.to_s.inspect}"
end