lib/spreadsheet_architect/utils.rb in spreadsheet_architect-4.0.0 vs lib/spreadsheet_architect/utils.rb in spreadsheet_architect-4.0.1

- old
+ new

@@ -5,16 +5,19 @@ raise SpreadsheetArchitect::Exceptions::MultipleDataSourcesError elsif options[:data] data = options[:data] end - if !options[:data] && options[:headers] == true + if options[:headers] == true headers = [] - needs_headers = true + + if !options[:data] + needs_headers = true + end elsif options[:headers].is_a?(Array) headers = options[:headers] else - headers = [] + headers = false end if options[:column_types] column_types = options[:column_types] else