Processamento em lote

def process(p,store) begin cat_img_list = p.fetch_image_paths p.catalog_images = cat_img_list unless cat_img_list.empty? p.save! @s_count += 1 rescue Exception => e @errors[p[:product_id]] = e @f_count += 1 print “x(#{p[:product_id]})” end end def …

Continuar lendo