Exception: Relegate::RecordNotUnarchived
- Inherits:
-
RelegateError
- Object
- StandardError
- RelegateError
- Relegate::RecordNotUnarchived
- Defined in:
- lib/relegate/errors.rb
Overview
Raised by Model#unarchive!
Instance Attribute Summary collapse
-
#record ⇒ Object
readonly
Returns the value of attribute record.
Instance Method Summary collapse
-
#initialize(message = nil, record = nil) ⇒ RecordNotUnarchived
constructor
A new instance of RecordNotUnarchived.
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( = nil, record = nil) @record = record super() end |
Instance Attribute Details
#record ⇒ Object (readonly)
Returns the value of attribute record.
19 20 21 |
# File 'lib/relegate/errors.rb', line 19 def record @record end |