Class: ActiveRecord::RecordInvalid

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

Overview

RecordInvalid

Instance Attribute Summary

Instance Method Summary

Constructor Details

- (RecordInvalid) initialize(record)

A new instance of RecordInvalid



87
88
89
90
# File 'lib/whyvalidationssuckin96/rails/active_record.rb', line 87

def initialize(record)
  @record = record
  super
end

Instance Attribute Details

- (Object) record (readonly)

Returns the value of attribute record



86
87
88
# File 'lib/whyvalidationssuckin96/rails/active_record.rb', line 86

def record
  @record
end