Sha256: 5ea72671c7dc5b3be937d3314fdddde22013de2a8c9d5c578b14a3e9c06f6405

Contents?: true

Size: 625 Bytes

Versions: 10

Compression:

Stored size: 625 Bytes

Contents

<%
  require 'csv' if RUBY_VERSION >= "1.9"

  fcsv_options = {
    :row_sep => "\n",
    :col_sep => params[:delimiter],
    :force_quotes => @export_config.force_quotes,
    :headers => @export_columns.collect { |column| format_export_column_header_name(column) }
  }

  csv_lib = Object.const_defined?('CSV') ? CSV : FasterCSV
  data = csv_lib.generate(fcsv_options) do |csv|
    csv << fcsv_options[:headers] unless params[:skip_header] == 'true'
    @records.each do |record|
      csv << @export_columns.collect { |column|
        get_export_column_value(record, column)
      }
    end
  end
-%><%= data.html_safe -%>

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
active_scaffold_export-3.4.0 app/views/active_scaffold_overrides/_export.csv.erb
active_scaffold_export_vho-3.1.4 frontends/default/views/_export.csv.erb
active_scaffold_export_vho-3.1.3 frontends/default/views/_export.csv.erb
active_scaffold_export-3.3.2 app/views/active_scaffold_overrides/_export.csv.erb
active_scaffold_export-3.3.0 app/views/active_scaffold_overrides/_export.csv.erb
active_scaffold_export-3.2.2 frontends/default/views/_export.csv.erb
active_scaffold_export-3.2.1 frontends/default/views/_export.csv.erb
active_scaffold_export_vho-3.1.2 frontends/default/views/_export.csv.erb
active_scaffold_export_vho-3.1.1 frontends/default/views/_export.csv.erb
active_scaffold_export_vho-3.1.0 frontends/default/views/_export.csv.erb