Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

git-svn-id: 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
commit 2c8fb682cb6dfe889b31bbb76c90de5011aec009 1 parent 5396b0f
Michael Koziarski NZKoz authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 activerecord/lib/active_record/validations.rb
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.