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

Version Path
alchemy_cms-3.2.1 app/views/alchemy/admin/resources/index.csv.erb
alchemy_cms-3.1.3 app/views/alchemy/admin/resources/index.csv.erb
lc_alchemy_cms-3.2.1 app/views/alchemy/admin/resources/index.csv.erb
lc_alchemy_cms-3.2.0 app/views/alchemy/admin/resources/index.csv.erb
alchemy_cms-3.2.0 app/views/alchemy/admin/resources/index.csv.erb
alchemy_cms-3.2.0.rc1 app/views/alchemy/admin/resources/index.csv.erb
alchemy_cms-3.2.0.beta app/views/alchemy/admin/resources/index.csv.erb
alchemy_cms-2.9.1 app/views/alchemy/admin/resources/index.csv.erb
alchemy_cms-3.1.1 app/views/alchemy/admin/resources/index.csv.erb
alchemy_cms-3.0.4 app/views/alchemy/admin/resources/index.csv.erb
alchemy_cms-3.1.0 app/views/alchemy/admin/resources/index.csv.erb
alchemy_cms-3.1.0.rc3 app/views/alchemy/admin/resources/index.csv.erb
alchemy_cms-3.1.0.rc2 app/views/alchemy/admin/resources/index.csv.erb
alchemy_cms-3.1.0.rc1 app/views/alchemy/admin/resources/index.csv.erb
alchemy_cms-3.1.0.beta6 app/views/alchemy/admin/resources/index.csv.erb
alchemy_cms-3.1.0.beta5 app/views/alchemy/admin/resources/index.csv.erb
alchemy_cms-3.1.0.beta4 app/views/alchemy/admin/resources/index.csv.erb
alchemy_cms-3.0.3 app/views/alchemy/admin/resources/index.csv.erb
alchemy_cms-3.1.0.beta3 app/views/alchemy/admin/resources/index.csv.erb
alchemy_cms-3.1.0.beta2 app/views/alchemy/admin/resources/index.csv.erb