aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/validations.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/lib/active_record/validations.rb')
-rwxr-xr-xactiverecord/lib/active_record/validations.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/validations.rb b/activerecord/lib/active_record/validations.rb
index 5824cd8b6f..1afdb76940 100755
--- a/activerecord/lib/active_record/validations.rb
+++ b/activerecord/lib/active_record/validations.rb
@@ -1,12 +1,12 @@
module ActiveRecord
# Raised by save! and create! when the record is invalid. Use the
- # record method to retrieve the record which did not validate.
+ # +record+ method to retrieve the record which did not validate.
# begin
# complex_operation_that_calls_save!_internally
# rescue ActiveRecord::RecordInvalid => invalid
# puts invalid.record.errors
# end
- class RecordInvalid < ActiveRecordError #:nodoc:
+ class RecordInvalid < ActiveRecordError
attr_reader :record
def initialize(record)
@record = record