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

Version Path
alchemy_cms-7.3.4 app/views/alchemy/admin/resources/index.csv.erb
alchemy_cms-7.3.3 app/views/alchemy/admin/resources/index.csv.erb
alchemy_cms-7.3.2 app/views/alchemy/admin/resources/index.csv.erb
alchemy_cms-7.2.7 app/views/alchemy/admin/resources/index.csv.erb
alchemy_cms-7.3.1 app/views/alchemy/admin/resources/index.csv.erb
alchemy_cms-7.3.0 app/views/alchemy/admin/resources/index.csv.erb
alchemy_cms-7.2.6 app/views/alchemy/admin/resources/index.csv.erb
alchemy_cms-7.2.5 app/views/alchemy/admin/resources/index.csv.erb
alchemy_cms-7.1.12 app/views/alchemy/admin/resources/index.csv.erb
alchemy_cms-7.0.15 app/views/alchemy/admin/resources/index.csv.erb
alchemy_cms-6.1.10 app/views/alchemy/admin/resources/index.csv.erb
alchemy_cms-7.2.4 app/views/alchemy/admin/resources/index.csv.erb
alchemy_cms-7.1.11 app/views/alchemy/admin/resources/index.csv.erb
alchemy_cms-7.2.3 app/views/alchemy/admin/resources/index.csv.erb
alchemy_cms-7.1.10 app/views/alchemy/admin/resources/index.csv.erb
alchemy_cms-7.2.2 app/views/alchemy/admin/resources/index.csv.erb
alchemy_cms-7.1.9 app/views/alchemy/admin/resources/index.csv.erb
alchemy_cms-7.0.14 app/views/alchemy/admin/resources/index.csv.erb
alchemy_cms-7.2.1 app/views/alchemy/admin/resources/index.csv.erb
alchemy_cms-7.0.13 app/views/alchemy/admin/resources/index.csv.erb