Exception: Discard::RecordNotDiscarded
- Inherits:
-
DiscardError
- Object
- StandardError
- DiscardError
- Discard::RecordNotDiscarded
- Defined in:
- lib/discard/errors.rb
Overview
Raised by Model#discard!
Instance Attribute Summary collapse
-
#record ⇒ Object
readonly
Returns the value of attribute record.
Instance Method Summary collapse
-
#initialize(message = nil, record = nil) ⇒ RecordNotDiscarded
constructor
A new instance of RecordNotDiscarded.
Constructor Details
#initialize(message = nil, record = nil) ⇒ RecordNotDiscarded
Returns a new instance of RecordNotDiscarded.
14 15 16 17 |
# File 'lib/discard/errors.rb', line 14 def initialize( = nil, record = nil) @record = record super() end |
Instance Attribute Details
#record ⇒ Object (readonly)
Returns the value of attribute record.
12 13 14 |
# File 'lib/discard/errors.rb', line 12 def record @record end |