From c05503d42ddc838d15e8b3df17a7c5618752f764 Mon Sep 17 00:00:00 2001 From: Kyle Banker Date: Wed, 24 Feb 2010 15:25:26 -0500 Subject: [PATCH] minor: aliases for gridfs --- lib/mongo/gridfs/grid_io.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/mongo/gridfs/grid_io.rb b/lib/mongo/gridfs/grid_io.rb index 9d72fd1..cc60e6c 100644 --- a/lib/mongo/gridfs/grid_io.rb +++ b/lib/mongo/gridfs/grid_io.rb @@ -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