Permalink
Browse files

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.
  • Loading branch information...
Arsen7 committed Jun 6, 2011
1 parent d3d5b04 commit c0c0a64ce652a6471ed1f9c72b3f5bc94164c0e5
Showing with 2 additions and 2 deletions.
  1. +2 −2 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

0 comments on commit c0c0a64

Please sign in to comment.