Exception: Discard::RecordNotUndiscarded
- Inherits:
-
DiscardError
- Object
- StandardError
- DiscardError
- Discard::RecordNotUndiscarded
- Defined in:
- lib/discard/errors.rb
Overview
Raised by Model#undiscard!
Instance Attribute Summary collapse
-
#record ⇒ Object
readonly
Returns the value of attribute record.
Instance Method Summary collapse
-
#initialize(message = nil, record = nil) ⇒ RecordNotUndiscarded
constructor
A new instance of RecordNotUndiscarded.
Constructor Details
#initialize(message = nil, record = nil) ⇒ RecordNotUndiscarded
Returns a new instance of RecordNotUndiscarded.
24 25 26 27 |
# File 'lib/discard/errors.rb', line 24 def initialize( = nil, record = nil) @record = record super() end |
Instance Attribute Details
#record ⇒ Object (readonly)
Returns the value of attribute record.
22 23 24 |
# File 'lib/discard/errors.rb', line 22 def record @record end |