Sha256: 71ec11dde88d8222f36c2b7fc5dbc5fada0bf42d09335044895e1d3a595bb9f5
Contents?: true
Size: 516 Bytes
Versions: 9
Compression:
Stored size: 516 Bytes
Contents
<% headers = current_model_decorator.index_field_names.map do |field_name| current_model_decorator.index_label_of(field_name) end decorated_collection = decorate collection %> <%= ::CSV.generate_line(headers).strip.html_safe %> <% decorated_collection.each do |decorated| data = current_model_decorator.index_field_names.map do |field_name| type_render decorated.index_type_of(field_name), object: decorated, field_name: field_name end %> <%= ::CSV.generate_line(data).strip.html_safe %> <% end %>
Version data entries
9 entries across 9 versions & 1 rubygems