Skip to content

Commit 82f6758

Browse files
committed
AR validations & callbacks: update callbacks list
1 parent 6330e2a commit 82f6758

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

railties/guides/source/activerecord_validations_callbacks.textile

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -879,32 +879,28 @@ Here is a list with all the available Active Record callbacks, listed in the sam
879879
h4. Creating an Object
880880

881881
* +before_validation+
882-
* +before_validation_on_create+
883882
* +after_validation+
884-
* +after_validation_on_create+
885883
* +before_save+
884+
* +after_save+
886885
* +before_create+
887-
* INSERT OPERATION
886+
* +around_create+
888887
* +after_create+
889-
* +after_save+
890888

891889
h4. Updating an Object
892890

893891
* +before_validation+
894-
* +before_validation_on_update+
895892
* +after_validation+
896-
* +after_validation_on_update+
897893
* +before_save+
894+
* +after_save+
898895
* +before_update+
899-
* UPDATE OPERATION
896+
* +around_update+
900897
* +after_update+
901-
* +after_save+
902898

903899
h4. Destroying an Object
904900

905901
* +before_destroy+
906-
* DELETE OPERATION
907902
* +after_destroy+
903+
* +around_destroy+
908904

909905
WARNING. +after_save+ runs both on create and update, but always _after_ the more specific callbacks +after_create+ and +after_update+, no matter the order in which the macro calls were executed.
910906

0 commit comments

Comments
 (0)