diff --git a/lib/mongo_mapper/bson_id.rb b/lib/mongo_mapper/bson_id.rb index 966edbf1c..6a6b1928e 100644 --- a/lib/mongo_mapper/bson_id.rb +++ b/lib/mongo_mapper/bson_id.rb @@ -1,9 +1,9 @@ class String def to_id - BSON::ObjectID self + BSON::ObjectId self end end -class BSON::ObjectID +class BSON::ObjectId def to_id self end