From c0c0a64ce652a6471ed1f9c72b3f5bc94164c0e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mariusz=20P=C4=99kala?= Date: Mon, 6 Jun 2011 11:51:18 +0200 Subject: 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. --- railties/guides/source/active_record_validations_callbacks.textile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'railties') 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 -- cgit v1.2.3