lib/para/importer/base.rb in para-0.7.1 vs lib/para/importer/base.rb in para-0.7.2
- old
+ new
@@ -5,9 +5,10 @@
attr_reader :file, :sheet
def perform(file, options = {})
@file = file
+ options.reverse_merge!(extension: file.attachment_ext)
@sheet = Roo::Spreadsheet.open(file.attachment_path, options)
ActiveRecord::Base.transaction do
(2..(sheet.last_row)).each do |index|
begin