Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pelargir
Copy link

@pelargir pelargir commented Nov 7, 2019

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.

Rails 5 adds after_{create,update,delete}_commit callback aliases. This
commit makes these callbacks available in observers.
@cprodhomme
Copy link
Contributor

need this 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants