From c24aa2f2dca52e1b0ee644e407389f6e89f53007 Mon Sep 17 00:00:00 2001 From: Neeraj Singh Date: Fri, 20 Aug 2010 09:47:54 -0400 Subject: documentation regarding after_validation --- activerecord/lib/active_record/callbacks.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'activerecord/lib/active_record/callbacks.rb') diff --git a/activerecord/lib/active_record/callbacks.rb b/activerecord/lib/active_record/callbacks.rb index c203581735..78e284699e 100644 --- a/activerecord/lib/active_record/callbacks.rb +++ b/activerecord/lib/active_record/callbacks.rb @@ -25,6 +25,8 @@ module ActiveRecord # Check out ActiveRecord::Transactions for more details about after_commit and # after_rollback. # + # Note that if validation fails then after_validation will not be invoked . + # # That's a total of ten callbacks, which gives you immense power to react and prepare for each state in the # Active Record lifecycle. The sequence for calling Base#save for an existing record is similar, # except that each _on_create callback is replaced by the corresponding _on_update callback. -- cgit v1.2.3