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-7.0.13 spec/app/models/appointment.rb
mongoid-7.0.12 spec/app/models/appointment.rb
mongoid-6.4.8 spec/app/models/appointment.rb
mongoid-7.0.11 spec/app/models/appointment.rb
mongoid-7.0.10 spec/app/models/appointment.rb
mongoid-6.4.7 spec/app/models/appointment.rb
mongoid-6.4.5 spec/app/models/appointment.rb
mongoid-7.0.8 spec/app/models/appointment.rb
mongoid-7.0.7 spec/app/models/appointment.rb
mongoid-7.0.6 spec/app/models/appointment.rb
mongoid-5.4.1 spec/app/models/appointment.rb
mongoid-7.0.5 spec/app/models/appointment.rb
mongoid-7.0.4 spec/app/models/appointment.rb
mongoid-6.4.4 spec/app/models/appointment.rb
mongoid-7.0.3 spec/app/models/appointment.rb
mongoid-6.4.2 spec/app/models/appointment.rb
mongoid-7.0.2 spec/app/models/appointment.rb
mongoid-7.0.1 spec/app/models/appointment.rb
mongoid-6.4.1 spec/app/models/appointment.rb
mongoid-5.4.0 spec/app/models/appointment.rb