Sha256: 943c9b741433355f7ef08fd90486eb62b7cd0d44aa3459dbe25b17fde1510314

Contents?: true

Size: 203 Bytes

Versions: 5

Compression:

Stored size: 203 Bytes

Contents

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

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
mongoid_paranoia-0.4.0 spec/app/models/appointment.rb
mongoid_paranoia-0.3.0 spec/app/models/appointment.rb
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/bundler/gems/mongoid-paranoia-83dc8de7b426/spec/app/models/appointment.rb
mongoid_paranoia-0.2.1 spec/app/models/appointment.rb
mongoid_paranoia-0.2.0 spec/app/models/appointment.rb