diff options
| author | Randy Morgan <[email protected]> | 2012-11-25 16:09:25 +0900 |
|---|---|---|
| committer | Randy Morgan <[email protected]> | 2012-11-25 16:09:25 +0900 |
| commit | d68b0671eeef2c9db6bc0ce89399d2d694c0fee2 (patch) | |
| tree | 8d3ed6e820cebecfda28fd9b5dc3ae1755c3da72 | |
| parent | 9c4bf451dba37ac453526b26e78d3cf6bf76cd30 (diff) | |
| download | caxlsx-d68b0671eeef2c9db6bc0ce89399d2d694c0fee2.tar.gz caxlsx-d68b0671eeef2c9db6bc0ce89399d2d694c0fee2.zip | |
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.
| -rw-r--r-- | lib/axlsx/workbook/worksheet/cell.rb | 4 |
1 files 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 |
