aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides/source/activerecord_validations_callbacks.textile
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2010-06-02 01:35:43 +0200
committerXavier Noria <fxn@hashref.com>2010-06-02 01:35:43 +0200
commitfdd203f964e31fd81a16be8f68462a64a17b0d92 (patch)
treee2b203278af8849d91e00ba2cebe18b8dae0bf15 /railties/guides/source/activerecord_validations_callbacks.textile
parent315e8952dfbaecd4d5175ea4d0fd95611cad9e01 (diff)
parent158473f0d113f0c0b02ba9b7353c10949172a1f7 (diff)
downloadrails-fdd203f964e31fd81a16be8f68462a64a17b0d92.tar.gz
rails-fdd203f964e31fd81a16be8f68462a64a17b0d92.tar.bz2
rails-fdd203f964e31fd81a16be8f68462a64a17b0d92.zip
Merge remote branch 'docrails/master'
Diffstat (limited to 'railties/guides/source/activerecord_validations_callbacks.textile')
-rw-r--r--railties/guides/source/activerecord_validations_callbacks.textile14
1 files changed, 5 insertions, 9 deletions
diff --git a/railties/guides/source/activerecord_validations_callbacks.textile b/railties/guides/source/activerecord_validations_callbacks.textile
index 857551c9d5..d83ea57864 100644
--- a/railties/guides/source/activerecord_validations_callbacks.textile
+++ b/railties/guides/source/activerecord_validations_callbacks.textile
@@ -879,32 +879,28 @@ Here is a list with all the available Active Record callbacks, listed in the sam
h4. Creating an Object
* +before_validation+
-* +before_validation_on_create+
* +after_validation+
-* +after_validation_on_create+
* +before_save+
+* +after_save+
* +before_create+
-* INSERT OPERATION
+* +around_create+
* +after_create+
-* +after_save+
h4. Updating an Object
* +before_validation+
-* +before_validation_on_update+
* +after_validation+
-* +after_validation_on_update+
* +before_save+
+* +after_save+
* +before_update+
-* UPDATE OPERATION
+* +around_update+
* +after_update+
-* +after_save+
h4. Destroying an Object
* +before_destroy+
-* DELETE OPERATION
* +after_destroy+
+* +around_destroy+
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.