1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

before_validation raises ActiveRecord::RecordInvalid instead of ActiveRecord::RecordNotSaved

This commit is contained in:
Xavier Noria 2008-08-23 23:59:09 +02:00
parent 69820504e0
commit 4e6f91402c

View file

@ -161,7 +161,7 @@ module ActiveRecord
# == <tt>before_validation*</tt> returning statements
#
# If the returning value of a +before_validation+ callback can be evaluated to +false+, the process will be aborted and <tt>Base#save</tt> will return +false+.
# If Base#save! is called it will raise a RecordNotSaved exception.
# If Base#save! is called it will raise a ActiveRecord::RecordInvalid exception.
# Nothing will be appended to the errors object.
#
# == Canceling callbacks