Sha256: 2177e78418b2fcadb5776dd70571fd57584de88e053367ab41354c91399342c4
Contents?: true
Size: 607 Bytes
Versions: 196
Compression:
Stored size: 607 Bytes
Contents
<% csv = CSV.generate(col_sep: ";", row_sep: "\r\n") do |row| %> <% row << ["Id"] + resource_handler.attributes.collect do |a| resource_handler.model.human_attribute_name(a[:name]) end %> <% resources_instance_variable.each do |resource| %> <% row << [resource.id] + resource_handler.attributes.map do |a| if a[:type] == :boolean resource.send(a[:name]) ? 'x' : '' else render_attribute(resource, a, {truncate: false}).to_s.strip end end %> <% end %> <% end %> <%== csv %>
Version data entries
196 entries across 196 versions & 1 rubygems