Sha256: 230ca769557f53a4cb8a62f87606c25d66fe5609330ea34262c4384bd0684314

Contents?: true

Size: 218 Bytes

Versions: 4

Compression:

Stored size: 218 Bytes

Contents

class Person
  include DataMapper::Resource
  property :id,   Serial
  property :name, String, :nullable => false
  has 1, :profile
  has n, :project_memberships
  has n, :projects, :through => :project_memberships
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
snusnu-dm-accepts_nested_attributes-0.0.3 spec/fixtures/person.rb
snusnu-dm-accepts_nested_attributes-0.0.4 spec/fixtures/person.rb
snusnu-dm-accepts_nested_attributes-0.0.5 spec/fixtures/person.rb
snusnu-dm-accepts_nested_attributes-0.0.6 spec/fixtures/person.rb