aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorMariusz Pękala <mariusz@arsen7.pl>2011-06-06 11:51:18 +0200
committerMariusz Pękala <mariusz@arsen7.pl>2011-06-06 11:51:18 +0200
commitc0c0a64ce652a6471ed1f9c72b3f5bc94164c0e5 (patch)
tree8fb2e74188505dc6699e81094ff9d936def504e2 /railties
parentd3d5b048f9036da941b8164dc8aa85d857059e47 (diff)
downloadrails-c0c0a64ce652a6471ed1f9c72b3f5bc94164c0e5.tar.gz
rails-c0c0a64ce652a6471ed1f9c72b3f5bc94164c0e5.tar.bz2
rails-c0c0a64ce652a6471ed1f9c72b3f5bc94164c0e5.zip
Validations guide: order of :after_save callback was incorrect.
The guide was contracting itself. First it stated that 'there is a list of callbacks in order of execution', on the list 'after_save' was placed before 'after_create', and then there was a warning that 'after_save' runs after them. I am not sure about 'around_' callbacks, but let's leave that for another patch.
Diffstat (limited to 'railties')
-rw-r--r--railties/guides/source/active_record_validations_callbacks.textile4
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/guides/source/active_record_validations_callbacks.textile b/railties/guides/source/active_record_validations_callbacks.textile
index 7140353a15..36094dcddc 100644
--- a/railties/guides/source/active_record_validations_callbacks.textile
+++ b/railties/guides/source/active_record_validations_callbacks.textile
@@ -912,20 +912,20 @@ h4. Creating an Object
* +before_validation+
* +after_validation+
* +before_save+
-* +after_save+
* +before_create+
* +around_create+
* +after_create+
+* +after_save+
h4. Updating an Object
* +before_validation+
* +after_validation+
* +before_save+
-* +after_save+
* +before_update+
* +around_update+
* +after_update+
+* +after_save+
h4. Destroying an Object