lib/typus/controller/format.rb in typus-3.1.0.rc8 vs lib/typus/controller/format.rb in typus-3.1.0.rc9
- old
+ new
@@ -26,10 +26,10 @@
filename = Rails.root.join("tmp", "export-#{@resource.to_resource}-#{Time.zone.now.to_s(:number)}.csv")
options = { :conditions => @conditions, :batch_size => 1000 }
- ::CSV.open(filename, 'w', :col_sep => ';') do |csv|
+ ::CSV.open(filename, 'w') do |csv|
csv << fields.keys
@resource.find_in_batches(options) do |records|
records.each do |record|
csv << fields.map do |key, value|
case value