Changeset 8846
- Timestamp:
- 02/10/08 02:50:13 (5 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/2-0-stable/activerecord/lib/active_record/validations.rb
r8841 r8846 1 1 module ActiveRecord 2 2 # Raised by save! and create! when the record is invalid. Use the 3 # recordmethod to retrieve the record which did not validate.3 # +record+ method to retrieve the record which did not validate. 4 4 # begin 5 5 # complex_operation_that_calls_save!_internally … … 7 7 # puts invalid.record.errors 8 8 # end 9 class RecordInvalid < ActiveRecordError #:nodoc:9 class RecordInvalid < ActiveRecordError 10 10 attr_reader :record 11 11 def initialize(record)