Permalink
Browse files

before_validation raises ActiveRecord::RecordInvalid instead of Activ…

…eRecord::RecordNotSaved
  • Loading branch information...
1 parent 6982050 commit 4e6f91402ce2dfa1b105212878209fa55f57cb6f @fxn fxn committed Aug 23, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/callbacks.rb
@@ -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

0 comments on commit 4e6f914

Please sign in to comment.