Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Show RecordInvalid in the documentation. References #10976 [kampers]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8845 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
commit 2c8fb682cb6dfe889b31bbb76c90de5011aec009 1 parent 5396b0f
@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

0 comments on commit 2c8fb68

Please sign in to comment.
Something went wrong with that request. Please try again.