Exception: DataMapper::YS::InvalidIndex

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/dm-ys/indexed_property.rb

Overview

Example

Class Foo
  include DataMapper::YS
  property :id, Serial

foo = Foo.new
foo[0] == foo[:id] == foo["id"] == foo.attributes[:id]