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