minor: aliases for gridfs

This commit is contained in:
Kyle Banker 2010-02-24 15:25:26 -05:00
parent 864abe3dce
commit c05503d42d
1 changed files with 2 additions and 1 deletions

View File

@ -289,8 +289,9 @@ module Mongo
@files_id = opts[:_id] || Mongo::ObjectID.new
@content_type = opts[:content_type] || (defined? MIME) && get_content_type || DEFAULT_CONTENT_TYPE
@chunk_size = opts[:chunk_size] || DEFAULT_CHUNK_SIZE
@file_length = 0
@metadata = opts[:metadata] if opts[:metadata]
@aliases = opts[:aliases] if opts[:aliases]
@file_length = 0
@current_chunk = create_chunk(0)
@file_position = 0