diff options
author | Xavier Noria <fxn@hashref.com> | 2008-08-23 23:59:09 +0200 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2008-08-23 23:59:09 +0200 |
commit | 4e6f91402ce2dfa1b105212878209fa55f57cb6f (patch) | |
tree | ffa1eb328b2fa6f34b632ec12fab5c9eee731f97 | |
parent | 69820504e0b9c453a636ecffdb3518cfca8b7857 (diff) | |
download | rails-4e6f91402ce2dfa1b105212878209fa55f57cb6f.tar.gz rails-4e6f91402ce2dfa1b105212878209fa55f57cb6f.tar.bz2 rails-4e6f91402ce2dfa1b105212878209fa55f57cb6f.zip |
before_validation raises ActiveRecord::RecordInvalid instead of ActiveRecord::RecordNotSaved
-rw-r--r-- | activerecord/lib/active_record/callbacks.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/callbacks.rb b/activerecord/lib/active_record/callbacks.rb index f1983b6496..d99e183f9e 100644 --- a/activerecord/lib/active_record/callbacks.rb +++ b/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 |