aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/callbacks.rb
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2006-07-05 02:44:26 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2006-07-05 02:44:26 +0000
commite8504877c0659f437cf294c6bca3471e025226d2 (patch)
tree38b328967328b632a8865680730abdeb9f09295c /activerecord/lib/active_record/callbacks.rb
parent11c715a53fd6309c37883b7d44462cc0a66f3bba (diff)
downloadrails-e8504877c0659f437cf294c6bca3471e025226d2.tar.gz
rails-e8504877c0659f437cf294c6bca3471e025226d2.tar.bz2
rails-e8504877c0659f437cf294c6bca3471e025226d2.zip
Doc fixes (closes #5443)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4551 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/lib/active_record/callbacks.rb')
-rwxr-xr-xactiverecord/lib/active_record/callbacks.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/callbacks.rb b/activerecord/lib/active_record/callbacks.rb
index eae243ddc7..950113c076 100755
--- a/activerecord/lib/active_record/callbacks.rb
+++ b/activerecord/lib/active_record/callbacks.rb
@@ -158,6 +158,12 @@ module ActiveRecord
# after_initialize will only be run if an explicit implementation is defined (<tt>def after_find</tt>). In that case, all of the
# callback types will be called.
#
+ # == before_validation* returning statements
+ #
+ # If the returning value of a before_validation callback can be evaluated to false, the process will be aborted and Base#save will return false.
+ # If Base#save! is called it will raise a RecordNotSave error.
+ # Nothing will be appended to the errors object.
+ #
# == Cancelling callbacks
#
# If a before_* callback returns false, all the later callbacks and the associated action are cancelled. If an after_* callback returns