# File lib/dragonfly/data_storage/mongo_data_store.rb, line 36 def store(temp_object, opts={}) ensure_authenticated! content_type = opts[:content_type] || opts[:mime_type] || 'application/octet-stream' temp_object.file do |f| mongo_id = grid.put(f, :content_type => content_type, :metadata => marshal_encode(temp_object.meta)) mongo_id.to_s end end