This commit is contained in:
Jim Menard 2009-01-16 16:13:54 -05:00
parent 9a757b93c6
commit 00712a77e8

View File

@ -75,7 +75,7 @@ how to interpret them. You can tell the Ruby Mongo driver how to create
primary keys by passing in the :pk option to the Mongo#db method. primary keys by passing in the :pk option to the Mongo#db method.
include XGen::Mongo::Driver include XGen::Mongo::Driver
db = Mongo.new.db('dbname', :pk => MyPKFactory) db = Mongo.new.db('dbname', :pk => MyPKFactory.new)
A primary key factory object must respond to :create_pk, which should take a A primary key factory object must respond to :create_pk, which should take a
hash and return a hash which merges the original hash with any primary key hash and return a hash which merges the original hash with any primary key