lib/remote_table/file.rb in remote_table-0.2.28 vs lib/remote_table/file.rb in remote_table-0.2.29
- old
+ new
@@ -89,10 +89,10 @@
end
def format_from_filename
extname = ::File.extname(filename).gsub('.', '')
return :csv if extname.blank?
- format = [ :xls, :ods ].detect { |i| i == extname.to_sym }
+ format = [ :xls, :ods, :xlsx ].detect { |i| i == extname.to_sym }
format = :html if extname =~ /\Ahtm/
format = :csv if format.blank?
format
end
end