doc fix
This commit is contained in:
parent
9a757b93c6
commit
00712a77e8
|
@ -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.
|
||||
|
||||
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
|
||||
hash and return a hash which merges the original hash with any primary key
|
||||
|
|
Loading…
Reference in New Issue