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

Version Path
wallaby-6.1.6 app/views/wallaby/resources/index.csv.erb
wallaby-6.1.5 app/views/wallaby/resources/index.csv.erb
wallaby-6.1.4 app/views/wallaby/resources/index.csv.erb
wallaby-6.1.3 app/views/wallaby/resources/index.csv.erb
wallaby-6.1.2 app/views/wallaby/resources/index.csv.erb
wallaby-6.1.1 app/views/wallaby/resources/index.csv.erb
wallaby-6.1.0 app/views/wallaby/resources/index.csv.erb
wallaby-6.0.2 app/views/wallaby/resources/index.csv.erb
wallaby-6.0.1 app/views/wallaby/resources/index.csv.erb