Sha256: dfc3c437e8603db7d8caa0c2bd56a87346cce725d9740eb676e3007b880308dc

Contents?: true

Size: 316 Bytes

Versions: 24

Compression:

Stored size: 316 Bytes

Contents

class Email
  include Mongoid::Document
  field :address
  validates_uniqueness_of :address
  embedded_in :patient
end

class Patient
  include Mongoid::Document
  field :title
  store_in :inpatient
  embeds_many :addresses, :as => :addressable
  embeds_one :email
  validates_presence_of :title, :on => :create
end

Version data entries

24 entries across 24 versions & 5 rubygems

Version Path
mongoid_spacial-0.2.17 spec/models/patient.rb
sig_mongoid_spacial-0.2.17 spec/models/patient.rb
cb_mongoid_spacial-0.2.16 spec/models/patient.rb
mongoid_geospatial-1.0.0 spec/models/patient.rb
mongoid_geospatial-1.0.0rc1 spec/models/patient.rb
mongoid_geospatial-1.0.0rc0 spec/models/patient.rb
mongoid_spacial-0.2.16 spec/models/patient.rb
mongoid_spacial-0.2.13 spec/models/patient.rb
mongoid_spacial-0.2.12 spec/models/patient.rb
mongoid_spacial-0.2.11 spec/models/patient.rb
mongoid_spacial-0.2.10 spec/models/patient.rb
mongoid_spacial-0.2.8 spec/models/patient.rb
mongoid_spacial-0.2.7 spec/models/patient.rb
mongoid_spacial-0.2.6 spec/models/patient.rb
mongoid_spacial-0.2.5 spec/models/patient.rb
mongoid_spacial-0.2.4 spec/models/patient.rb
mongoid_spacial-0.2.3 spec/models/patient.rb
mongoid_spacial-0.2.2 spec/models/patient.rb
mongoid_spacial-0.2.0 spec/models/patient.rb
mongoid_spacial-0.1.1 spec/models/patient.rb