Skip to content

Commit abe8f7f

Browse files
committed
RUBY-844 Update cursor inspect string with namespace
1 parent 0889081 commit abe8f7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/mongo/cursor.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ def query_options_hash
487487

488488
# Clean output for inspect.
489489
def inspect
490-
"<Mongo::Cursor:0x#{object_id.to_s(16)} namespace='#{@db.name}.#{@collection.name}' " +
490+
"<Mongo::Cursor:0x#{object_id.to_s(16)} namespace='#{full_collection_name}' " +
491491
"@selector=#{@selector.inspect} @cursor_id=#{@cursor_id}>"
492492
end
493493

0 commit comments

Comments
 (0)