Fixed issue with grid.rb where 'put' was duplicating the filename attribute on the file
This commit is contained in:
parent
8c96f5d52f
commit
ffab7ba5a3
|
@ -65,7 +65,7 @@ module Mongo
|
|||
#
|
||||
# @return [Mongo::ObjectId] the file's id.
|
||||
def put(data, opts={})
|
||||
filename = opts[:filename]
|
||||
filename = opts.delete :filename
|
||||
opts.merge!(default_grid_io_opts)
|
||||
file = GridIO.new(@files, @chunks, filename, 'w', opts=opts)
|
||||
file.write(data)
|
||||
|
|
Loading…
Reference in New Issue