-
Type: Task
-
Resolution: Done
-
Affects Version/s: None
-
Component/s: None
I just tried to update a ObjectId. But it just doesn't work. Here is what I am doing
user = User.first
user._id = BSON::ObjectId.new
user.save!
That returns true. But if I load the user again, it still has the old id. Is that a bug in mongoid? Or I am doing something wrong?
Thanks.