From e0c68881c036ecae877002ac3799f57887fb25ed Mon Sep 17 00:00:00 2001 From: Adam C Date: Wed, 22 Feb 2012 11:08:14 +0000 Subject: [PATCH] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c53a6b3..4e0aae5 100644 --- a/README.md +++ b/README.md @@ -198,7 +198,7 @@ Here is a sample primary key factory, taken from the tests: class TestPKFactory def create_pk(row) - row['_id'] ||= Mongo::ObjectID.new + row['_id'] ||= BSON::ObjectId.new row end end @@ -212,7 +212,7 @@ ActiveRecord-like framework for non-Rails apps) and the AR Mongo adapter code def create_pk(row) return row if row[:_id] row.delete(:_id) # in case it exists but the value is nil - row['_id'] ||= Mongo::ObjectID.new + row['_id'] ||= BSON::ObjectId.new row end end