lib/active_admin/csv_builder.rb in activeadmin-2.11.1 vs lib/active_admin/csv_builder.rb in activeadmin-2.11.2

- old
+ new

@@ -43,12 +43,12 @@ end def build(controller, csv) @collection = controller.send :find_collection, except: :pagination columns = exec_columns controller.view_context - bom = options.delete :byte_order_mark + bom = options[:byte_order_mark] column_names = options.delete(:column_names) { true } - csv_options = options.except :encoding_options, :humanize_name + csv_options = options.except :encoding_options, :humanize_name, :byte_order_mark csv << bom if bom if column_names csv << CSV.generate_line(columns.map { |c| encode c.name, options }, **csv_options)