Fixed issue with grid.rb where 'put' was duplicating the filename attribute on the file

This commit is contained in:
Steve Ardis 2010-10-26 21:25:45 -04:00 committed by Kyle Banker
parent 8c96f5d52f
commit ffab7ba5a3
1 changed files with 1 additions and 1 deletions

View File

@ -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)