Sha256: 499a3185d2cb15db4bff645d9f7cc570338a556eca415d05550d4b15705b1419
Contents?: true
Size: 413 Bytes
Versions: 2
Compression:
Stored size: 413 Bytes
Contents
<%- csv_lib = if RUBY_VERSION =~ /^1.8/ require 'fastercsv' FasterCSV else CSV end csv_output = csv_lib.generate do |csv| columns = active_admin_config.csv_builder.columns csv << columns.map(&:name) collection.each do |resource| csv << columns.map do |column| call_method_or_proc_on resource, column.data end end end %> <%= csv_output.html_safe %>
Version data entries
2 entries across 2 versions & 1 rubygems