Sha256: d30ffcc826280bdc6f36f098fe2cbf593182655911813147f1aeec4de8ef2074

Contents?: true

Size: 250 Bytes

Versions: 91

Compression:

Stored size: 250 Bytes

Contents

class Patient
  include Mongoid::Document
  field :title, type: String
  store_in collection: "inpatient"
  embeds_many :addresses, as: :addressable
  embeds_one :email
  embeds_one :name, as: :namable
  validates_presence_of :title, on: :create
end

Version data entries

91 entries across 86 versions & 8 rubygems

Version Path
sepastian-mongoid-rails4-4.0.0.alpha spec/app/models/patient.rb
mongoid-3.1.5 spec/app/models/patient.rb
mongoid_heroku_stable-4.0.0 spec/app/models/patient.rb
mongoid_rails4-4.0.0 spec/app/models/patient.rb
mongoid-paranoia-0.3.0 spec/app/models/patient.rb
mongoid-paranoia-0.2.1 spec/app/models/patient.rb
mongoid-versioning-0.2.0 spec/app/models/patient.rb
mongoid-paranoia-0.2.0 spec/app/models/patient.rb
mongoid-paranoia-0.1.1 spec/app/models/patient.rb
mongoid-versioning-0.1.0 spec/app/models/patient.rb
mongoid-paranoia-0.1.0 spec/app/models/patient.rb