Class: Tarantool::Model::RecordNotSaved

Inherits:
Error
  • Object
show all
Defined in:
tarantool-model/lib/tarantool/model/errors.rb

Overview

A before callback threw :abort.

Instance Attribute Summary collapse

Instance Method Summary collapse

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