Class: Tarantool::Model::RecordNotSaved
- Defined in:
- tarantool-model/lib/tarantool/model/errors.rb
Overview
A before callback threw :abort.
Instance Attribute Summary collapse
-
#record ⇒ Object
readonly
Returns the value of attribute record.
Instance Method Summary collapse
-
#initialize(record) ⇒ RecordNotSaved
constructor
A new instance of RecordNotSaved.
Constructor Details
#initialize(record) ⇒ RecordNotSaved
Returns a new instance of RecordNotSaved.
32 33 34 35 |
# File 'tarantool-model/lib/tarantool/model/errors.rb', line 32 def initialize(record) @record = record super("#{record.class.name} was not saved: a before callback aborted") end |
Instance Attribute Details
#record ⇒ Object (readonly)
Returns the value of attribute record.
30 31 32 |
# File 'tarantool-model/lib/tarantool/model/errors.rb', line 30 def record @record end |