Exception: Neo4j::Rails::Persistence::RecordInvalidError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/neo4j/rails/persistence.rb

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (RecordInvalidError) initialize(record)

A new instance of RecordInvalidError



178
179
180
181
# File 'lib/neo4j/rails/persistence.rb', line 178

def initialize(record)
  @record = record
  super(@record.errors.full_messages.join(", "))
end

Instance Attribute Details

- (Object) record (readonly)

Returns the value of attribute record



176
177
178
# File 'lib/neo4j/rails/persistence.rb', line 176

def record
  @record
end