Exception: Relegate::RecordNotUnarchived

Inherits:
RelegateError
  • Object
show all
Defined in:
lib/relegate/errors.rb

Overview

Raised by Model#unarchive!

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = nil, record = nil) ⇒ RecordNotUnarchived

Returns a new instance of RecordNotUnarchived.



21
22
23
24
# File 'lib/relegate/errors.rb', line 21

def initialize(message = nil, record = nil)
  @record = record
  super(message)
end

Instance Attribute Details

#recordObject (readonly)

Returns the value of attribute record.



19
20
21
# File 'lib/relegate/errors.rb', line 19

def record
  @record
end