Sha256: 36f29c64c591757df8571ed9922c346c3f726117849041a194546a13bf900291

Contents?: true

Size: 227 Bytes

Versions: 17

Compression:

Stored size: 227 Bytes

Contents

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

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
mongoid-1.2.14 spec/models/namespacing.rb
mongoid-1.2.13 spec/models/namespacing.rb
mongoid-1.2.12 spec/models/namespacing.rb
mongoid-1.2.11 spec/models/namespacing.rb
mongoid-1.2.10 spec/models/namespacing.rb
mongoid-1.2.9 spec/models/namespacing.rb
mongoid-1.2.8 spec/models/namespacing.rb
mongoid-1.2.7 spec/models/namespacing.rb
mongoid-pre-2.0.0.pre spec/models/namespacing.rb
mongoid-1.2.6 spec/models/namespacing.rb
mongoid-1.2.5 spec/models/namespacing.rb
mongoid-1.2.4 spec/models/namespacing.rb
mongoid-1.2.3 spec/models/namespacing.rb
mongoid-1.2.2 spec/models/namespacing.rb
mongoid-1.2.1 spec/models/namespacing.rb
mongoid-1.2.0 spec/models/namespacing.rb
mongoid-1.1.4 spec/models/namespacing.rb