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:
parent
69820504e0
commit
4e6f91402c
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue