Sha256: 08cbb974127fb59d508a65600845d5b5dd2a7189055a7b45043983e88797babe

Contents?: true

Size: 230 Bytes

Versions: 1

Compression:

Stored size: 230 Bytes

Contents

module Medical
  class Patient
    include Mongoid::Document
    field :name
    embed_many :prescriptions, :class_name => "Medical::Prescription"
  end
  class Prescription
    include Mongoid::Document
    field :name
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mongoid-2.0.0.alpha spec/models/namespacing.rb