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