spec/app/models/appointment.rb in mongoid-paranoia-0.3.0 vs spec/app/models/appointment.rb in mongoid-paranoia-1.0.0.beta1
- old
+ new
@@ -1,7 +1,7 @@
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)
+ default_scope ->{ where(active: true) }
end