Sha256: cdd834adc30adbf5ab38f2dc6101d7bd03a0e9b75b2373c05d57ce7c8219670a
Contents?: true
Size: 360 Bytes
Versions: 1
Compression:
Stored size: 360 Bytes
Contents
class Cow include DataMapper::Resource property :id, Integer, :key => true property :composite, Integer, :key => true property :name, String property :breed, String has n, :baby_cows, :class_name => 'Cow' belongs_to :mother_cow, :class_name => 'Cow' def serialize_properties {:extra => "Extra", :another => 42} end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dm-serializer-0.9.8 | spec/fixtures/cow.rb |