Skip to content

Add support for after_create_commit, after_update_commit and after_destroy_commit #50

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

Closed
wants to merge 1 commit into from

Conversation

cfis
Copy link

@cfis cfis commented Aug 1, 2016

Allows observers to define methods methods named after_create_commit, after_update_commit and after_destroy_commit and have them called when approriate.

@@ -110,7 +110,9 @@ def define_callbacks(klass)
observer = self
observer_name = observer.class.name.underscore.gsub('/', '__')

ActiveRecord::Callbacks::CALLBACKS.each do |callback|
callbacks = ActiveRecord::Callbacks::CALLBACKS + [:after_create_commit, :after_update_commit, :after_destroy_commit]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why aren't these 3 included in ActiveRecord::Callbacks::CALLBACKS?

@oyeanuj
Copy link

oyeanuj commented Sep 8, 2017

@cfis @kaspth Is this PR still active or have a chance to merge?

@kaspth
Copy link
Contributor

kaspth commented Sep 23, 2017

Looks not so active. Feel free to send a new PR.

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.

3 participants