Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 8846

Show
Ignore:
Timestamp:
02/10/08 02:50:13 (5 months ago)
Author:
nzkoz
Message:

2-0-stable: Show RecordInvalid in the documentation. Closes #10976 [kampers]

Merging [8845]

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/2-0-stable/activerecord/lib/active_record/validations.rb

    r8841 r8846  
    11module ActiveRecord 
    22  # Raised by save! and create! when the record is invalid.  Use the 
    3   # record method to retrieve the record which did not validate. 
     3  # +record+ method to retrieve the record which did not validate. 
    44  #   begin 
    55  #     complex_operation_that_calls_save!_internally 
     
    77  #     puts invalid.record.errors 
    88  #   end 
    9   class RecordInvalid < ActiveRecordError #:nodoc: 
     9  class RecordInvalid < ActiveRecordError 
    1010    attr_reader :record 
    1111    def initialize(record)