Class: ActiveRecord::RecordInvalid

Inherits:
ActiveRecordError
  • Object
show all
Defined in:
lib/whyvalidationssuckin96/rails/active_record/base_validation_overrides.rb

Overview

RecordInvalid

Instance Attribute Summary

Instance Method Summary

Constructor Details

- (RecordInvalid) initialize(record)

A new instance of RecordInvalid



118
119
120
121
# File 'lib/whyvalidationssuckin96/rails/active_record/base_validation_overrides.rb', line 118

def initialize(record)
  @record = record
  super
end

Instance Attribute Details

- (Object) record (readonly)

Returns the value of attribute record



117
118
119
# File 'lib/whyvalidationssuckin96/rails/active_record/base_validation_overrides.rb', line 117

def record
  @record
end