active-list 4.2.0 → 4.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +3 -0
- data/VERSION +1 -1
- data/lib/active-list/exporters/excel_csv_exporter.rb +3 -3
- metadata +1 -1
data/README.rdoc
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
4.2.
|
1
|
+
4.2.1
|
@@ -19,10 +19,10 @@ module ActiveList
|
|
19
19
|
record = "r"
|
20
20
|
code = table.select_data_code(:paginate => false)
|
21
21
|
encoding = "CP1252"
|
22
|
-
code << "data = ActiveList::CSV.generate(:col_sep=>';') do |csv|\n"
|
23
|
-
code << " csv << [#{columns_to_array(table, :header, :encoding =>
|
22
|
+
code << "data = ActiveList::CSV.generate(:col_sep => ';') do |csv|\n"
|
23
|
+
code << " csv << [#{columns_to_array(table, :header, :encoding => encoding).join(', ')}]\n"
|
24
24
|
code << " for #{record} in #{table.records_variable_name}\n"
|
25
|
-
code << " csv << [#{columns_to_array(table, :body, :record=>record, :encoding =>
|
25
|
+
code << " csv << [#{columns_to_array(table, :body, :record =>record, :encoding => encoding).join(', ')}]\n"
|
26
26
|
code << " end\n"
|
27
27
|
code << "end\n"
|
28
28
|
code << "send_data(data, :type => #{self.mime_type.to_s.inspect}, :disposition => 'inline', :filename => #{table.model.name}.model_name.human.gsub(/[^a-z0-9]/i,'_')+'.#{self.file_extension}')\n"
|