No commit activity in last 3 years
No release in over 3 years
Rails: Get notified when an after_commit block blows up
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
>= 0
>= 0
~> 3
>= 0

Runtime

 Project Readme

Rails: Get notified when an after_commit block blows up

This gem is deprecated since rails 4.2 / 5 now have the correct behavior.

config.active_record.raise_in_transactional_callbacks = true

Install

gem install after_commit_exception_notification

Usage

require 'after_commit_exception_notification' # by default prints to STDERR and ActiveRecord::Base.logger

AfterCommitExceptionNotification.callback do |exception|
  ErrorService.report("after_commit crashed", exception)
end

Author

Michael Grosser
michael@grosser.it
License: MIT
Build Status