Sha256: 026fdcc379c53dfe80f4fe941237efa3809d3626692002412920fd24e697408d

Contents?: true

Size: 223 Bytes

Versions: 68

Compression:

Stored size: 223 Bytes

Contents

class Appointment
  include Mongoid::Document
  field :active, type: Mongoid::Boolean, default: true
  field :timed, type: Mongoid::Boolean, default: true
  embedded_in :person
  default_scope ->{ where(active: true) }
end

Version data entries

68 entries across 63 versions & 3 rubygems

Version Path
mongoid-4.0.2 spec/app/models/appointment.rb
mongoid-4.0.1 spec/app/models/appointment.rb
mongoid-4.0.0 spec/app/models/appointment.rb
mongoid-4.0.0.rc2 spec/app/models/appointment.rb
mongoid-4.0.0.rc1 spec/app/models/appointment.rb
mongoid-4.0.0.beta2 spec/app/models/appointment.rb
mongoid-4.0.0.beta1 spec/app/models/appointment.rb
mongoid-4.0.0.alpha2 spec/app/models/appointment.rb