aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/callbacks.rb
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2008-08-23 23:59:09 +0200
committerXavier Noria <fxn@hashref.com>2008-08-23 23:59:09 +0200
commit4e6f91402ce2dfa1b105212878209fa55f57cb6f (patch)
treeffa1eb328b2fa6f34b632ec12fab5c9eee731f97 /activerecord/lib/active_record/callbacks.rb
parent69820504e0b9c453a636ecffdb3518cfca8b7857 (diff)
downloadrails-4e6f91402ce2dfa1b105212878209fa55f57cb6f.tar.gz
rails-4e6f91402ce2dfa1b105212878209fa55f57cb6f.tar.bz2
rails-4e6f91402ce2dfa1b105212878209fa55f57cb6f.zip
before_validation raises ActiveRecord::RecordInvalid instead of ActiveRecord::RecordNotSaved
Diffstat (limited to 'activerecord/lib/active_record/callbacks.rb')
-rw-r--r--activerecord/lib/active_record/callbacks.rb2
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