Sha256: 95f2cc2b33a3670a55e2518c90c72be255571cb26f1b7985eb893e7788f82557
Contents?: true
Size: 454 Bytes
Versions: 9
Compression:
Stored size: 454 Bytes
Contents
<%- # Based on Active Admin generator = RUBY_VERSION =~ /^1.8/ ? FasterCSV : CSV output = generator.generate do |csv| cols = @interface.attributes_for(:index) csv << cols.map(&:title) @collection.each do |object| csv << cols.map do |col| if col.data instance_exec(object, &col.data) else pretty_format(object.send(col.attribute)) end end end end %> <%= output.html_safe %>
Version data entries
9 entries across 9 versions & 1 rubygems