mongoid/mongoid — Issue #1671: count always get 1 in some case
Author: grasp
Created: 2012-02-04 11:20:13+00:00
State: open

I did a validation before create to check whether the record is there.

it works well before I meet the issue several times.

Mongoid line: Contact.new(contact).save!
or Contact.create!(contact)

both with same result of count =1

here is mongodb line
MONGODB cj_development['contact_rules'].find({:_id=>BSON::ObjectId('4f2cff887
af2a60ab4000004')}).limit(-1).sort([[:_id, :asc]])

do you know in what condition will trigger this behavior? how to fix it?