Browse files

Patch for Lighthouse ticket #5419 has been been applied. So reverting…

… this one.

Revert "documentation regarding after_validation"

This reverts commit c24aa2f.
  • Loading branch information...
1 parent c24aa2f commit 87398e531d0bb23b30787fe26d86678dba322895 Neeraj Singh committed Aug 20, 2010
4 activemodel/lib/active_model/validations/callbacks.rb
@@ -14,13 +14,11 @@ module Callbacks
# include ActiveModel::Validations::Callbacks
# before_validation :do_stuff_before_validation
- # after_validation :do_stuff_after_validation
+ # after_validation :do_tuff_after_validation


yeap . By reverting the commit that typo is back. Good catch. :-)

Ruby on Rails member

Fixed on docrails
Next time, you can push all the documentation stuff you want to fix to docrails ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
# 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
2 activerecord/lib/active_record/callbacks.rb
@@ -25,8 +25,6 @@ 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.

0 comments on commit 87398e5

Please sign in to comment.