Skip to content

Commit 7b0a35b

Browse files
committed
A small change to the README. Corrected how to instantiate the GridFS object.
1 parent 6b8d19b commit 7b0a35b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,10 @@ for details, and see examples/gridfs.rb for code that uses many of the Grid
109109
features (metadata, content type, seek, tell, etc).
110110

111111
Examples:
112+
112113
# Write a file on disk to the Grid
113114
file = File.open('image.jpg')
114-
grid = Grid.new(db)
115+
grid = Mongo::Grid.new(db)
115116
id = grid.put(file)
116117

117118
# Retrieve the file

0 commit comments

Comments
 (0)