Commit 6b0916d9 by liyijie

feat: 使用try_method

parent 631eeccf
......@@ -90,7 +90,7 @@ module TalltyImportExport
first_content_row_index = respond_to?(:first_header) ? 2 : 1
each_method = @each_method || :each
records.send(each_method).with_index do |record, index|
records.try_method(each_method).with_index do |record, index|
row = []
headers.each_with_index do |header, col_index|
_data = handle_data(record, header, index)
......
module TalltyImportExport
VERSION = "1.0.25"
VERSION = "1.0.26"
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment