Initialize @cursor_id

This commit is contained in:
Wojciech Piekutowski 2011-02-20 17:03:32 +01:00
parent 95911166f3
commit 62900acb4b
1 changed files with 2 additions and 0 deletions

View File

@ -34,6 +34,8 @@ module Mongo
#
# @core cursors constructor_details
def initialize(collection, opts={})
@cursor_id = nil
@db = collection.db
@collection = collection
@connection = @db.connection