Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

2-0-stable: Show RecordInvalid in the documentation. Closes #10976 [k…

…ampers]

Merging [8845]


git-svn-id: http://svn-commit.rubyonrails.org/rails/branches/2-0-stable@8846 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
commit f0000281ffef110bd3608e9dbcd9eec09b08a699 1 parent 41adf87
@NZKoz NZKoz authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 activerecord/lib/active_record/validations.rb
View
4 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
Please sign in to comment.
Something went wrong with that request. Please try again.