diff --git a/lib/mongo/gridfs/grid.rb b/lib/mongo/gridfs/grid.rb index 0f55e0b..d8aa018 100644 --- a/lib/mongo/gridfs/grid.rb +++ b/lib/mongo/gridfs/grid.rb @@ -70,7 +70,7 @@ module Mongo opts = opts.dup filename = opts[:filename] opts.merge!(default_grid_io_opts) - file = GridIO.new(@files, @chunks, filename, 'w', opts=opts) + file = GridIO.new(@files, @chunks, filename, 'w', opts) file.write(data) file.close file.files_id