diff options
author | Neeraj Singh <neerajdotname@gmail.com> | 2010-08-20 09:47:54 -0400 |
---|---|---|
committer | Neeraj Singh <neerajdotname@gmail.com> | 2010-08-20 09:48:07 -0400 |
commit | c24aa2f2dca52e1b0ee644e407389f6e89f53007 (patch) | |
tree | 0cf197192761356831fff1b28ff5e58b2695672c /activerecord/lib/active_record/callbacks.rb | |
parent | 99c092d4e875856502946c29a1ae484eab3befb8 (diff) | |
download | rails-c24aa2f2dca52e1b0ee644e407389f6e89f53007.tar.gz rails-c24aa2f2dca52e1b0ee644e407389f6e89f53007.tar.bz2 rails-c24aa2f2dca52e1b0ee644e407389f6e89f53007.zip |
documentation regarding after_validation
Diffstat (limited to 'activerecord/lib/active_record/callbacks.rb')
-rw-r--r-- | activerecord/lib/active_record/callbacks.rb | 2 |
1 files changed, 2 insertions, 0 deletions
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 <tt>ActiveRecord::Transactions</tt> for more details about <tt>after_commit</tt> and # <tt>after_rollback</tt>. # + # Note that if validation fails then <tt>after_validation</tt> 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 <tt>Base#save</tt> for an existing record is similar, # except that each <tt>_on_create</tt> callback is replaced by the corresponding <tt>_on_update</tt> callback. |