rails-observers icon indicating copy to clipboard operation
rails-observers copied to clipboard

Add after_{create,update,delete}_commit callbacks to observers

Open pelargir opened this issue 5 years ago • 1 comments

Rails 5 adds after_{create,update,delete}_commit callback aliases. See: https://blog.bigbinary.com/2016/05/11/rails-5-adds-after_create-aliases.html

This PR makes these callbacks available in observers. Includes tests to verify the callbacks were added properly. This also maintains backwards compatibility with Rails 4.

pelargir avatar Nov 07 '19 16:11 pelargir

need this 🙏

cprodhomme avatar Mar 31 '20 07:03 cprodhomme