Exception: DuplicateIt::RecordSaveError
- Inherits:
-
StandardError
- Object
- StandardError
- DuplicateIt::RecordSaveError
- Defined in:
- lib/duplicate_it.rb
Instance Attribute Summary collapse
-
#record ⇒ Object
readonly
Returns the value of attribute record.
Instance Method Summary collapse
-
#initialize(record) ⇒ RecordSaveError
constructor
A new instance of RecordSaveError.
Constructor Details
#initialize(record) ⇒ RecordSaveError
Returns a new instance of RecordSaveError.
6 7 8 9 10 |
# File 'lib/duplicate_it.rb', line 6 def initialize(record) Rails.logger.debug "Error saving #{record}" Rails.logger.debug "Error trace: #{record.errors.inspect}" @record = record end |
Instance Attribute Details
#record ⇒ Object (readonly)
Returns the value of attribute record.
4 5 6 |
# File 'lib/duplicate_it.rb', line 4 def record @record end |