Added
- I18n support: preserve
I18n.localesetting from whenafter_commitis called and restore it for callback execution. Pull request #36 by [Bilka2][]
Unclaimed project
Are you a maintainer of after_commit_everywhere? Claim this project to take control of your public changelog and roadmap.
Changelog
Use ActiveRecord transactional callbacks outside of models, literally everywhere in your application.
I18n.locale setting from when after_commit is called and restore it for callback execution. Pull request #36 by [Bilka2][]This behavior more closely matches ActiveRecord behavior for a single record
Ability to propagate exception for multiple after_commit callbacks within transaction. Should handle exception inside callback to avoid stopping other callbacks.
Pull request #35 by @kevink1103. Also see discussion at [#34](https://github.c...
Ability to prepend callbacks to the head of callback queue using prepend: true option.
AfterCommitEverywhere.after_commit { puts "I'm second!" }
AfterCommitEverywhere.after_commit(prepend: true) { puts "I'm first!" }
See Pull request #30 by [@quentindemetz][] and [@A1090][].
Don't include development-related files into packaged gem to avoid confusing users or software tools. [@Envek][].
See discussion at #26.
Files packaged after this change:
CHANGELOG.md
LICENSE.txt
README.md
after_commit_everywhere.gemspec
lib/after_commit_everywhere.rb
lib/after_com...
in_transaction helper method to execute code within existing transaction or start a new one if there is no tx open.
It is similar to ActiveRecord::Base.transaction, but it doesn't swallow ActiveRecord::Rollback exception in case when there is no transaction open.
See discussion at #23 for details.
[Pull request...