Exception: Relegate::RecordNotArchived
- Inherits:
-
RelegateError
- Object
- StandardError
- RelegateError
- Relegate::RecordNotArchived
- Defined in:
- lib/relegate/errors.rb
Overview
Raised by Model#archive!
Instance Attribute Summary collapse
-
#record ⇒ Object
readonly
Returns the value of attribute record.
Instance Method Summary collapse
-
#initialize(message = nil, record = nil) ⇒ RecordNotArchived
constructor
A new instance of RecordNotArchived.
Constructor Details
#initialize(message = nil, record = nil) ⇒ RecordNotArchived
Returns a new instance of RecordNotArchived.
11 12 13 14 |
# File 'lib/relegate/errors.rb', line 11 def initialize( = nil, record = nil) @record = record super() end |
Instance Attribute Details
#record ⇒ Object (readonly)
Returns the value of attribute record.
9 10 11 |
# File 'lib/relegate/errors.rb', line 9 def record @record end |