-
Notifications
You must be signed in to change notification settings - Fork 21.6k
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
after_save(on: :create) fired on update #12502
Comments
I think the You would need to use |
save is called in |
Right. The only callback that accepts |
@rafaelfranca It looks to me like |
Yes, it is true. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here is my model, with Rails 4.0.0 (also tested with edge Rails)
Both callbacks are fired on update.
I cannot use
after_create
untilafter_create
is always called beforeafter_save
: I need to to control the order of my callbacks.The text was updated successfully, but these errors were encountered: