aboutsummaryrefslogtreecommitdiffstats
path: root/activejob/CHANGELOG.md
diff options
context:
space:
mode:
Diffstat (limited to 'activejob/CHANGELOG.md')
-rw-r--r--activejob/CHANGELOG.md17
1 files changed, 17 insertions, 0 deletions
diff --git a/activejob/CHANGELOG.md b/activejob/CHANGELOG.md
index 4453f845f4..ff8375e690 100644
--- a/activejob/CHANGELOG.md
+++ b/activejob/CHANGELOG.md
@@ -1,3 +1,20 @@
+* Allow block to be passed to `ActiveJob::Base.discard_on` to allow custom handling of discard jobs.
+
+ Example:
+
+ class RemoteServiceJob < ActiveJob::Base
+ discard_on(CustomAppException) do |job, exception|
+ ExceptionNotifier.caught(exception)
+ end
+
+ def perform(*args)
+ # Might raise CustomAppException for something domain specific
+ end
+ end
+
+ *Aidan Haran*
+
+
## Rails 5.2.0.beta2 (November 28, 2017) ##
* No changes.