diff options
author | Mariusz Pękala <mariusz@arsen7.pl> | 2011-06-06 11:51:18 +0200 |
---|---|---|
committer | Mariusz Pękala <mariusz@arsen7.pl> | 2011-06-06 11:51:18 +0200 |
commit | c0c0a64ce652a6471ed1f9c72b3f5bc94164c0e5 (patch) | |
tree | 8fb2e74188505dc6699e81094ff9d936def504e2 /railties/guides/source/active_record_validations_callbacks.textile | |
parent | d3d5b048f9036da941b8164dc8aa85d857059e47 (diff) | |
download | rails-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/guides/source/active_record_validations_callbacks.textile')
-rw-r--r-- | railties/guides/source/active_record_validations_callbacks.textile | 4 |
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 |