aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/lib
diff options
context:
space:
mode:
authorNeeraj Singh <neerajdotname@gmail.com>2010-08-20 09:47:54 -0400
committerNeeraj Singh <neerajdotname@gmail.com>2010-08-20 09:48:07 -0400
commitc24aa2f2dca52e1b0ee644e407389f6e89f53007 (patch)
tree0cf197192761356831fff1b28ff5e58b2695672c /activemodel/lib
parent99c092d4e875856502946c29a1ae484eab3befb8 (diff)
downloadrails-c24aa2f2dca52e1b0ee644e407389f6e89f53007.tar.gz
rails-c24aa2f2dca52e1b0ee644e407389f6e89f53007.tar.bz2
rails-c24aa2f2dca52e1b0ee644e407389f6e89f53007.zip
documentation regarding after_validation
Diffstat (limited to 'activemodel/lib')
-rw-r--r--activemodel/lib/active_model/validations/callbacks.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/activemodel/lib/active_model/validations/callbacks.rb b/activemodel/lib/active_model/validations/callbacks.rb
index afd65d3dd5..c3e74bcc8b 100644
--- a/activemodel/lib/active_model/validations/callbacks.rb
+++ b/activemodel/lib/active_model/validations/callbacks.rb
@@ -14,11 +14,13 @@ module ActiveModel
# include ActiveModel::Validations::Callbacks
#
# before_validation :do_stuff_before_validation
- # after_validation :do_tuff_after_validation
+ # after_validation :do_stuff_after_validation
# end
#
# Like other before_* callbacks if <tt>before_validation</tt> returns false
# then <tt>valid?</tt> will not be called.
+ #
+ # If validation fails then <tt>after_validation</tt> will not be called.
extend ActiveSupport::Concern
included do