Sha256: cc026e9ee8375c8da079932aad2b13f070530566f4a6b3beadf77fb0346cce26

Contents?: true

Size: 268 Bytes

Versions: 1

Compression:

Stored size: 268 Bytes

Contents

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
snusnu-dm-accepts_nested_attributes-0.10.0 spec/fixtures/person.rb