From d68b0671eeef2c9db6bc0ce89399d2d694c0fee2 Mon Sep 17 00:00:00 2001 From: Randy Morgan Date: Sun, 25 Nov 2012 16:09:25 +0900 Subject: Removed row data type validation for cells This gives us a 24% increase in speed. Ill take that tradeoff against the risk that a user will be manually hacking cells and making a mess of it. --- lib/axlsx/workbook/worksheet/cell.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/axlsx/workbook/worksheet/cell.rb b/lib/axlsx/workbook/worksheet/cell.rb index 439ac65a..126b24cd 100644 --- a/lib/axlsx/workbook/worksheet/cell.rb +++ b/lib/axlsx/workbook/worksheet/cell.rb @@ -398,8 +398,8 @@ module Axlsx end # assigns the owning row for this cell. - def row=(v) DataTypeValidator.validate "Cell.row", Row, v; @row=v end - + def row=(v) @row=v end + # Determines the cell type based on the cell value. # @note This is only used when a cell is created but no :type option is specified, the following rules apply: # 1. If the value is an instance of Date, the type is set to :date -- cgit v1.2.3